Class PublishedContentBase
Provide an abstract base class for IPublishedContent
implementations.
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public abstract class PublishedContentBase : IPublishedContent
Properties
Children
Gets the children of the content.
Declaration
public abstract IEnumerable<IPublishedContent> Children { get; }
Property Value
ContentSet
Declaration
public virtual IEnumerable<IPublishedContent> ContentSet { get; }
Property Value
ContentType
Declaration
public abstract PublishedContentType ContentType { get; }
Property Value
CreateDate
Declaration
public abstract DateTime CreateDate { get; }
Property Value
Type |
Description |
System.DateTime |
|
CreatorId
Declaration
public abstract int CreatorId { get; }
Property Value
Type |
Description |
System.Int32 |
|
CreatorName
Declaration
public abstract string CreatorName { get; }
Property Value
Type |
Description |
System.String |
|
DocumentTypeAlias
Declaration
public abstract string DocumentTypeAlias { get; }
Property Value
Type |
Description |
System.String |
|
DocumentTypeId
Declaration
public abstract int DocumentTypeId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Id
Declaration
public abstract int Id { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsDraft
Declaration
public abstract bool IsDraft { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[String]
Gets the value of a property identified by its alias.
Declaration
public virtual object this[string alias] { get; }
Parameters
Type |
Name |
Description |
System.String |
alias |
The property alias.
|
Property Value
Type |
Description |
System.Object |
The value of the property identified by the alias.
|
ItemType
Declaration
public abstract PublishedItemType ItemType { get; }
Property Value
Level
Declaration
public abstract int Level { get; }
Property Value
Type |
Description |
System.Int32 |
|
Name
Declaration
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
Parent
Gets the parent of the content.
Declaration
public abstract IPublishedContent Parent { get; }
Property Value
Path
Declaration
public abstract string Path { get; }
Property Value
Type |
Description |
System.String |
|
Properties
Gets the properties of the content.
Declaration
public abstract ICollection<IPublishedProperty> Properties { get; }
Property Value
SortOrder
Declaration
public abstract int SortOrder { get; }
Property Value
Type |
Description |
System.Int32 |
|
TemplateId
Declaration
public abstract int TemplateId { get; }
Property Value
Type |
Description |
System.Int32 |
|
UpdateDate
Declaration
public abstract DateTime UpdateDate { get; }
Property Value
Type |
Description |
System.DateTime |
|
Url
Gets the url of the content.
Declaration
public virtual string Url { get; }
Property Value
Type |
Description |
System.String |
|
UrlName
Declaration
public abstract string UrlName { get; }
Property Value
Type |
Description |
System.String |
|
Version
Declaration
public abstract Guid Version { get; }
Property Value
Type |
Description |
System.Guid |
|
WriterId
Declaration
public abstract int WriterId { get; }
Property Value
Type |
Description |
System.Int32 |
|
WriterName
Declaration
public abstract string WriterName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetIndex()
Declaration
Returns
Type |
Description |
System.Int32 |
|
GetProperty(String)
Gets a property identified by its alias.
Declaration
public abstract IPublishedProperty GetProperty(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
The property alias.
|
Returns
GetProperty(String, Boolean)
Gets a property identified by its alias.
Declaration
public virtual IPublishedProperty GetProperty(string alias, bool recurse)
Parameters
Type |
Name |
Description |
System.String |
alias |
The property alias.
|
System.Boolean |
recurse |
A value indicating whether to navigate the tree upwards until a property with a value is found.
|
Returns