Class NamedItemList
- Namespace
- Dynamicweb.Content.Items
- Assembly
- Dynamicweb.dll
NamedItemList connects an ItemList to a something (a Page, an Area, ...)
- Inheritance
-
Named
Item List
- Inherited Members
Constructors
NamedItemList()
Properties
ItemList
Gets or sets the item list.
Property Value
ItemListId
Gets or sets the id of the item list.
Property Value
Name
Gets or sets the name of the named item list.
Property Value
SourceId
Gets or sets the id of the owner.
Property Value
SourceType
Gets or sets the type of the owner(a Page, an Area, an Item ...).
Property Value
Methods
Add(Item, string, Page)
Add an item to a named item list
Parameters
Returns
Add(Item, string, Page, int)
Add an item to a named item list
Parameters
item
ItemThe item
listName
stringList name for new item
page
PagePage with list name
sortIndex
intIndex of item in list
Returns
Create(string, string, ListSourceType, int)
Create a new named list with all required properties
public static NamedItemList Create(string name, string itemType, NamedItemList.ListSourceType sourceType, int sourceId)
Parameters
name
stringitemType
stringsourceType
NamedItem .ListList Source Type sourceId
int
Returns
Delete(int)
Deletes the named list
Parameters
id
int
Fill(IDataReader)
Fills object properties with data from the given IData
Parameters
reader
IDataReader Reader to read data from.
FillRow(DataRow)
Fills the given Data
Parameters
row
DataRow Row to write data into.
GetListById(int)
Gets named item list by ID
Parameters
listId
intThe item list id
Returns
GetListByName(string, ListSourceType, int)
Gets named item lists by source
public static NamedItemList GetListByName(string name, NamedItemList.ListSourceType sourceType, int sourceId)
Parameters
name
stringsourceType
NamedItem .ListList Source Type The source type
sourceId
intThe source id
Returns
GetListsByArea(int)
Gets named item lists by area
Parameters
areaId
intThe area id
Returns
GetListsBySource(ListSourceType, int)
Gets named item lists by source
public static IEnumerable<NamedItemList> GetListsBySource(NamedItemList.ListSourceType sourceType, int sourceId)
Parameters
sourceType
NamedItem .ListList Source Type The source type
sourceId
intThe source id
Returns
GetNamedItemListByListId(int)
Gets named item lists by his list Id
Parameters
listId
intThe list id
Returns
GetNamedItemListsBySourceType(ListSourceType)
Gets named item lists by source type
public static IEnumerable<NamedItemList> GetNamedItemListsBySourceType(NamedItemList.ListSourceType sourceType)
Parameters
sourceType
NamedItem .ListList Source Type The source type