November Happy Hour will be moved to Thursday December 5th.

Class PageTypeRepository

The repository for PageType

Inheritance
System.Object
PageTypeRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[Obsolete("Use IContentTypeRepository")]
[ServiceConfiguration(typeof(PageTypeRepository))]
public class PageTypeRepository : IContentTypeRepository<PageType>

Constructors

PageTypeRepository(IContentTypeRepository)

Initializes a new instance of the PageTypeRepository class.

Declaration
public PageTypeRepository(IContentTypeRepository contentTypeRepository)
Parameters
Type Name Description
IContentTypeRepository contentTypeRepository

The content type repository.

Methods

Copy(PageType)

Copies the specified PageType.

Declaration
public virtual PageType Copy(PageType pageType)
Parameters
Type Name Description
PageType pageType

Type of the content.

Returns
Type Description
PageType

Copy(Int32)

Copies the PageType with specified id.

Declaration
public virtual PageType Copy(int id)
Parameters
Type Name Description
System.Int32 id

The id.

Returns
Type Description
PageType

Copy(Type)

Copies the PageType with specified model type.

Declaration
public virtual PageType Copy(Type modelType)
Parameters
Type Name Description
System.Type modelType

Type of the model.

Returns
Type Description
PageType

Delete(PageType)

Deletes the specified PageType.

Declaration
public virtual void Delete(PageType pageType)
Parameters
Type Name Description
PageType pageType

Type of the content.

Delete(Int32)

Deletes the PageType with specified id.

Declaration
public virtual void Delete(int id)
Parameters
Type Name Description
System.Int32 id

The id.

Delete(Type)

Deletes the PageType with specified model type.

Declaration
public virtual void Delete(Type modelType)
Parameters
Type Name Description
System.Type modelType

Type of the model.

Delete<T>()

Deletes the PageType with specified model type.

Declaration
public virtual void Delete<T>()
    where T : PageData
Type Parameters
Name Description
T

List()

Lists all registered PageType.

Declaration
public virtual IEnumerable<PageType> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<PageType>

Load(Guid)

Loads the PageType with specified guid based identifier.

Declaration
public virtual PageType Load(Guid guid)
Parameters
Type Name Description
System.Guid guid

The GUID.

Returns
Type Description
PageType

Load(Int32)

Loads the PageType with specified id.

Declaration
public virtual PageType Load(int id)
Parameters
Type Name Description
System.Int32 id

The id.

Returns
Type Description
PageType

Load(String)

Loads the PageType with specified name.

Declaration
public virtual PageType Load(string name)
Parameters
Type Name Description
System.String name

The name.

Returns
Type Description
PageType

Load(Type)

Loads the PageType registered with specified typed model.

Declaration
public virtual PageType Load(Type modelType)
Parameters
Type Name Description
System.Type modelType

Type of the model.

Returns
Type Description
PageType

Load<T>()

Loads the PageType registered with specified typed model.

Declaration
public virtual PageType Load<T>()
    where T : PageData
Returns
Type Description
PageType
Type Parameters
Name Description
T

Save(PageType)

Saves the specified PageType.

Declaration
public virtual void Save(PageType pageType)
Parameters
Type Name Description
PageType pageType

Type of the content.

Implements

Extension Methods