Class TabDefinitionDataSource
DataSource control that handles TabDefinition objects
Inheritance
System.Object
TabDefinitionDataSource
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class TabDefinitionDataSource : GenericDataSource<TabDefinition, TabDefinitionCollection, int>, IDataSourceMethods
Constructors
TabDefinitionDataSource()
Initializes a new instance of the TabDefinitionDataSource class.
Declaration
public TabDefinitionDataSource()
Methods
CreateItem(List<TabDefinition>)
Creates a new TabDefinition
Declaration
protected override TabDefinition CreateItem(List<TabDefinition> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<TabDefinition> | items | the list of current instances in the given scope. |
Returns
Type | Description |
---|---|
TabDefinition |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.TabDefinition, EPiServer.DataAbstraction.TabDefinitionCollection, System.Int32>.CreateItem(System.Collections.Generic.List<EPiServer.DataAbstraction.TabDefinition>)
DeleteItem(TabDefinition)
Deletes an TabDefinition
Declaration
protected override void DeleteItem(TabDefinition item)
Parameters
Type | Name | Description |
---|---|---|
TabDefinition | item | The item to delete. |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.TabDefinition, EPiServer.DataAbstraction.TabDefinitionCollection, System.Int32>.DeleteItem(EPiServer.DataAbstraction.TabDefinition)
ListItems()
Returns a list of all current tab definitions
Declaration
protected override List<TabDefinition> ListItems()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TabDefinition> | a list of instances. |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.TabDefinition, EPiServer.DataAbstraction.TabDefinitionCollection, System.Int32>.ListItems()
LoadItem(Int32)
Loads a specific tab definition with the specified key.
Declaration
protected override TabDefinition LoadItem(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The key of the instance to load. |
Returns
Type | Description |
---|---|
TabDefinition | A object instance. |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.TabDefinition, EPiServer.DataAbstraction.TabDefinitionCollection, System.Int32>.LoadItem(System.Int32)
SaveItem(TabDefinition)
Saves an TabDefinition
Declaration
protected override void SaveItem(TabDefinition item)
Parameters
Type | Name | Description |
---|---|---|
TabDefinition | item | The item to persist. |
Overrides
EPiServer.Web.WebControls.GenericDataSource<EPiServer.DataAbstraction.TabDefinition, EPiServer.DataAbstraction.TabDefinitionCollection, System.Int32>.SaveItem(EPiServer.DataAbstraction.TabDefinition)