Interface IPublishedContentType
Represents an IPublished
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedContentType
Remarks
Instances implementing the IPublished
Properties
View SourceAlias
Gets the content type alias.
Declaration
string Alias { get; }
Property Value
Type | Description |
---|---|
System. |
CompositionAliases
Gets the aliases of the content types participating in the composition.
Declaration
HashSet<string> CompositionAliases { get; }
Property Value
Type | Description |
---|---|
Hash |
Id
Gets the content type identifier.
Declaration
int Id { get; }
Property Value
Type | Description |
---|---|
System. |
IsElement
Gets a value indicating whether this content type is for an element.
Declaration
bool IsElement { get; }
Property Value
Type | Description |
---|---|
System. |
ItemType
Gets the content item type.
Declaration
PublishedItemType ItemType { get; }
Property Value
Type | Description |
---|---|
Published |
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<IPublished |
Variations
Gets the content variations of the content type.
Declaration
ContentVariation Variations { get; }
Property Value
Type | Description |
---|---|
Content |
Methods
View SourceGetPropertyIndex(String)
Gets a property type index.
Declaration
int GetPropertyIndex(string alias)
Parameters
Type | Name | Description |
---|---|---|
System. |
alias |
Returns
Type | Description |
---|---|
System. |
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. |
index |
Returns
Type | Description |
---|---|
IPublished |
GetPropertyType(String)
Gets a property type.
Declaration
IPublishedPropertyType GetPropertyType(string alias)
Parameters
Type | Name | Description |
---|---|---|
System. |
alias |
Returns
Type | Description |
---|---|
IPublished |