Interface IPublishedContentType
Represents an IPublishedElement type.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedContentTypeRemarks
Instances implementing the IPublishedContentType interface should be immutable, ie if the content type changes, then a new instance needs to be created.
Properties
View SourceAlias
Gets the content type alias.
Declaration
string Alias { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
CompositionAliases
Gets the aliases of the content types participating in the composition.
Declaration
HashSet<string> CompositionAliases { get; }Property Value
| Type | Description | 
|---|---|
| HashSet<System.String> | 
Id
Gets the content type identifier.
Declaration
int Id { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
IsElement
Gets a value indicating whether this content type is for an element.
Declaration
bool IsElement { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
ItemType
Gets the content item type.
Declaration
PublishedItemType ItemType { get; }Property Value
| Type | Description | 
|---|---|
| PublishedItemType | 
Key
Gets the unique key for the content type.
Declaration
Guid Key { get; }Property Value
| Type | Description | 
|---|---|
| Guid | 
PropertyTypes
Gets the content type properties.
Declaration
IEnumerable<IPublishedPropertyType> PropertyTypes { get; }Property Value
| Type | Description | 
|---|---|
| IEnumerable<IPublishedPropertyType> | 
Variations
Gets the content variations of the content type.
Declaration
ContentVariation Variations { get; }Property Value
| Type | Description | 
|---|---|
| ContentVariation | 
Methods
View SourceGetPropertyIndex(String)
Gets a property type index.
Declaration
int GetPropertyIndex(string alias)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | alias | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Remarks
The alias is case-insensitive. This is the only place where alias strings are compared.
GetPropertyType(Int32)
Gets a property type.
Declaration
IPublishedPropertyType GetPropertyType(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | 
Returns
| Type | Description | 
|---|---|
| IPublishedPropertyType | 
GetPropertyType(String)
Gets a property type.
Declaration
IPublishedPropertyType GetPropertyType(string alias)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | alias | 
Returns
| Type | Description | 
|---|---|
| IPublishedPropertyType |