The ContentItem type exposes the following members.

Constructors

  NameDescription
ContentItem
Creates a new instance of the ContentItem.

Methods

  NameDescription
AddTo
Adds an item to the children of this item updating it's parent refernce.
Clone
Creats a copy of this item including details and authorized roles resetting ID.
EqualsOverloaded.
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindPath
GetChild
Tries to get a child item with a given name. This method igonres user permissions and any trailing '.aspx' that might be part of the name.
GetChildrenOverloaded.
GetDetailOverloaded.
GetDetailCollection
Gets a named detail collection.
GetHashCode
Gets a hash code based on the item's id.
(Overrides Object..::.GetHashCode()()().)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IsAuthorized
Gets wether a certain user is authorized to view this item.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
SetDetailOverloaded.
ToString
Returns this item's name.
(Overrides Object..::.ToString()()().)

Properties

  NameDescription
AuthorizedRoles
Gets an array of roles allowed to read this item. Null or empty list is interpreted as this item has no access restrictions (anyone may read).
Children
Gets or sets all a collection of child items of this item ignoring permissions. If you want the children the current user has permission to use GetChildren()()() instead.
Created
Gets or sets when this item was initially created.
DetailCollections
Gets or sets the details collection collection. These are details grouped into a collection.
Details
Gets or sets the details collection. These are usually accessed using the e.g. item["Detailname"]. This is a place to store content data.
Expires
Gets or sets the expiration date of this item.
Extension
The default file extension for this content item, e.g. ".aspx".
IconUrl
Gets the icon of this item. This can be used to distinguish item types in edit mode.
ID
Gets or sets item ID.
IsPage
Gets whether this item is a page. This is used for and site map purposes.
Item
Gets or sets the detail or property with the supplied name. If a property with the supplied name exists this is always returned in favour of any detail that might have the same name.
Name
Gets or sets the item's name. This is used to compute the item's url and can be used to uniquely identify the item among other items on the same level.
Parent
Gets or sets this item's parent. This can be null for root items and previous versions but should be another page in other situations.
Path
The logical path to the node from the root node.
Published
Gets or sets the publish date of this item.
RewrittenUrl Obsolete.
Gets the non-friendly url to this item (e.g. "/default.aspx?page=1"). This is used to uniquely identify this item when rewriting to the template page. Non-page items have two query string properties; page and item (e.g. "/default.aspx?page=1&item=27").
SavedBy
Gets or sets the name of the identity who saved this item.
SortOrder
Gets or sets the sort order of this item.
TemplateUrl
Gets the template that handle the presentation of this content item. For non page items (IsPage) this can be a user control (ascx).
Title
Gets or sets the item's title. This is used in edit mode and probably in a custom implementation.
Updated
Gets or sets the date this item was updated.
Url
Gets the public url to this item. This is computed by walking the parent path and prepending their names to the url.
VersionOf
Gets or sets the published version of this item. If this value is not null then this item is a previous version of the item specified by VersionOf.
Visible
Gets or sets whether this item is visible. This is normally used to control it's visibility in the site map provider.
ZoneName
Gets or sets zone name which is associated with data items and their placement on a page.

See Also