Class PageDefinitionDataSource
DataSource control that handles Property definitions
Inheritance
System.Object
PageDefinitionDataSource
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
Returns
DeleteItem(PropertyDefinition)
Declaration
protected override void DeleteItem(PropertyDefinition item)
Parameters
IsValid(PropertyDefinition, ref String)
Declaration
protected override bool IsValid(PropertyDefinition item, ref string message)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ListItems()
Declaration
protected override List<PropertyDefinition> ListItems()
Returns
LoadItem(Int32)
Declaration
protected override PropertyDefinition LoadItem(int key)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
Returns
SaveItem(PropertyDefinition)
Declaration
protected override void SaveItem(PropertyDefinition item)
Parameters
SetupParameters(IDictionary)
Declaration
protected override void SetupParameters(IDictionary values)
Parameters
Type |
Name |
Description |
System.Collections.IDictionary |
values |
|