Class PageDefinitionDataSource

DataSource control that handles Property definitions

Inheritance
System.Object
PageDefinitionDataSource
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Web.WebControls.dll
Version: 8.11.0
Syntax
public class PageDefinitionDataSource : GenericDataSource<PropertyDefinition, List<PropertyDefinition>, int>

Constructors

PageDefinitionDataSource()

Declaration
public PageDefinitionDataSource()

Properties

DefaultPageDefinitionTypeID

Gets or sets a value used as the default value for the PageDefinitionType upon PageDefinition instance creation.

Declaration
public int DefaultPageDefinitionTypeID { get; set; }
Property Value
Type Description
System.Int32

Dynamic

Gets or sets a value indicating whether the data source should operate on PageDefinition instances that represent dynamic properties in EPiSErver or PageDefinition instances bound to PageTypes.

Declaration
public bool Dynamic { get; set; }
Property Value
Type Description
System.Boolean

PageTypeID

Gets or sets PageTypeID used to scope the PageDefinitions the DataSource operates on.

Declaration
public int PageTypeID { get; set; }
Property Value
Type Description
System.Int32

Methods

CreateItem(List<PropertyDefinition>)

Declaration
protected override PropertyDefinition CreateItem(List<PropertyDefinition> items)
Parameters
Type Name Description
System.Collections.Generic.List<PropertyDefinition> items
Returns
Type Description
PropertyDefinition

DeleteItem(PropertyDefinition)

Declaration
protected override void DeleteItem(PropertyDefinition item)
Parameters
Type Name Description
PropertyDefinition item

IsValid(PropertyDefinition, ref String)

Declaration
protected override bool IsValid(PropertyDefinition item, ref string message)
Parameters
Type Name Description
PropertyDefinition item
System.String message
Returns
Type Description
System.Boolean

ListItems()

Declaration
protected override List<PropertyDefinition> ListItems()
Returns
Type Description
System.Collections.Generic.List<PropertyDefinition>

LoadItem(Int32)

Declaration
protected override PropertyDefinition LoadItem(int key)
Parameters
Type Name Description
System.Int32 key
Returns
Type Description
PropertyDefinition

SaveItem(PropertyDefinition)

Declaration
protected override void SaveItem(PropertyDefinition item)
Parameters
Type Name Description
PropertyDefinition item

SetupParameters(IDictionary)

Declaration
protected override void SetupParameters(IDictionary values)
Parameters
Type Name Description
System.Collections.IDictionary values