Class PageDefinitionDataSource
DataSource control that handles Property definitions
Inheritance
System.Object
GenericDataSource<PropertyDefinition, System.Collections.Generic.List<PropertyDefinition>, System.Int32>
PageDefinitionDataSource
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Web.WebControls.dll
Version: 9.12.2Syntax
public class PageDefinitionDataSource : GenericDataSource<PropertyDefinition, List<PropertyDefinition>, int>, IDataSourceMethods
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 |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.CreateItem(System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>)
DeleteItem(PropertyDefinition)
Declaration
protected override void DeleteItem(PropertyDefinition item)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinition | item |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.DeleteItem(EPiServer.DataAbstraction.PropertyDefinition)
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 |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.IsValid(EPiServer.DataAbstraction.PropertyDefinition, System.String)
ListItems()
Declaration
protected override List<PropertyDefinition> ListItems()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<PropertyDefinition> |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.ListItems()
LoadItem(Int32)
Declaration
protected override PropertyDefinition LoadItem(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key |
Returns
Type | Description |
---|---|
PropertyDefinition |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.LoadItem(System.Int32)
SaveItem(PropertyDefinition)
Declaration
protected override void SaveItem(PropertyDefinition item)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinition | item |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.SaveItem(EPiServer.DataAbstraction.PropertyDefinition)
SetupParameters(IDictionary)
Declaration
protected override void SetupParameters(IDictionary values)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | values |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.PropertyDefinition, System.Collections.Generic.List<EPiServer.DataAbstraction.PropertyDefinition>, System.Int32>.SetupParameters(System.Collections.IDictionary)