Sitefinity CMS

Important Interfaces of Lists Module Send comments on this topic.
See Also
Developing with Sitefinity > Modules > Modules API > Lists > Important Interfaces of Lists Module

Glossary Item Box

The Lists module creates and works with two kinds of data:

  • NamedList
  • ListItem

NamedList represents a list, and ListItem represents the item inside of list. The NamedList object implements the INamedList interface, while the ListItem object implements the IListItem interface. Since you will be working with the objects of INamedList and IListItem types, first take a look at a description of the two interfaces and their members.

The object is named NamedList, and not only List, in order to avoid naming conflicts with some built-in .NET objects.

 

INamedList Members

Member name  Member type  Comments
ID  Guid  Unique identifier (Primary key) of the list.
Name  string  Name/Title of the list.
Created  DateTime  Represents date and time when list has been created.
Owner  string  Username of the user who has created the list.
Items  IList  List of IListItem objects belonging to this NamedList.


 

IListItem Members

Member name  Member type  Comments
ID  Guid  Unique identifier (Primary key) of the ListItem.
Headline  string  Headline or the title of the list item.
Content  string  Content of the list item.
Ordinal  int  Represents the position of the ListItem inside of a NamedList. The smaller the number the closer to the top of the list a ListItem is.
Parent  INamedList  NamedList object to which ListItem belongs.


 

See Also