Interface IPublishedElement
Represents a published element.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedElement
Properties
View SourceContentType
Gets the content type.
Declaration
IPublishedContentType ContentType { get; }
Property Value
| Type | Description |
|---|---|
| IPublishedContentType |
Key
Gets the unique key of the published element.
Declaration
Guid Key { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Properties
Gets the properties of the element.
Declaration
IEnumerable<IPublishedProperty> Properties { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IPublishedProperty> |
Remarks
Contains one IPublishedProperty for each property defined for the content type, including
inherited properties. Some properties may have no value.
Methods
View SourceGetProperty(String)
Gets a property identified by its alias.
Declaration
IPublishedProperty GetProperty(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | alias | The property alias. |
Returns
| Type | Description |
|---|---|
| IPublishedProperty | The property identified by the alias. |
Remarks
If the content type has no property with that alias, including inherited properties, returns null,
otherwise return a property -- that may have no value (ie HasValue is false).
The alias is case-insensitive.