Interface IPublishedPropertyType
Represents a published property type.
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedPropertyType
Remarks
Instances implementing the Published
Properties
View SourceAlias
Gets property type alias.
Declaration
string Alias { get; }
Property Value
Type | Description |
---|---|
System. |
CacheLevel
Gets the property cache level.
Declaration
PropertyCacheLevel CacheLevel { get; }
Property Value
Type | Description |
---|---|
Property |
ClrType
Gets the property CLR type.
Declaration
Type? ClrType { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Returns the actual CLR type which does not contain Model
Mapping from Model
ContentType
Gets the published content type containing the property type.
Declaration
IPublishedContentType ContentType { get; }
Property Value
Type | Description |
---|---|
IPublished |
DataType
Gets the data type.
Declaration
PublishedDataType DataType { get; }
Property Value
Type | Description |
---|---|
Published |
DeliveryApiCacheLevel
Gets the property cache level for Delivery API representation.
Declaration
PropertyCacheLevel DeliveryApiCacheLevel { get; }
Property Value
Type | Description |
---|---|
Property |
DeliveryApiCacheLevelForExpansion
Gets the property cache level for Delivery API representation when expanding the property.
Declaration
virtual PropertyCacheLevel DeliveryApiCacheLevelForExpansion { get; }
Property Value
Type | Description |
---|---|
Property |
Remarks
Defaults to the value of Delivery
DeliveryApiModelClrType
Gets the property model Delivery Api CLR type.
Declaration
virtual Type DeliveryApiModelClrType { get; }
Property Value
Type | Description |
---|---|
Type |
Remarks
View SourceEditorAlias
Gets the property editor alias.
Declaration
string EditorAlias { get; }
Property Value
Type | Description |
---|---|
System. |
EditorUiAlias
Gets the property editor UI alias.
Declaration
string EditorUiAlias { get; }
Property Value
Type | Description |
---|---|
System. |
IsUserProperty
Gets a value indicating whether the property is a user content property.
Declaration
bool IsUserProperty { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
A non-user content property is a property that has been added to a published content type by Umbraco but does not corresponds to a user-defined published property.
ModelClrType
Gets the property model CLR type.
Declaration
Type ModelClrType { get; }
Property Value
Type | Description |
---|---|
Type |
Remarks
The model CLR type may be a Model
For the actual CLR type, see Clr
Variations
Gets the content variations of the property type.
Declaration
ContentVariation Variations { get; }
Property Value
Type | Description |
---|---|
Content |
Methods
View SourceConvertInterToDeliveryApiObject(IPublishedElement, PropertyCacheLevel, Object, Boolean, Boolean)
Converts the intermediate value into the object value for Delivery API representation.
Declaration
object ConvertInterToDeliveryApiObject(IPublishedElement owner, PropertyCacheLevel referenceCacheLevel, object inter, bool preview, bool expanding)
Parameters
Type | Name | Description |
---|---|---|
IPublished |
owner | The published element owning the property. |
Property |
referenceCacheLevel | The reference cache level. |
System. |
inter | The intermediate value. |
System. |
preview | A value indicating whether content should be considered draft. |
System. |
expanding | A value indicating whether the property value should be expanded. |
Returns
Type | Description |
---|---|
System. |
The object value. |
ConvertInterToObject(IPublishedElement, PropertyCacheLevel, Object, Boolean)
Converts the intermediate value into the object value.
Declaration
object ConvertInterToObject(IPublishedElement owner, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
Parameters
Type | Name | Description |
---|---|---|
IPublished |
owner | The published element owning the property. |
Property |
referenceCacheLevel | The reference cache level. |
System. |
inter | The intermediate value. |
System. |
preview | A value indicating whether content should be considered draft. |
Returns
Type | Description |
---|---|
System. |
The object value. |
ConvertSourceToInter(IPublishedElement, Object, Boolean)
Converts the source value into the intermediate value.
Declaration
object ConvertSourceToInter(IPublishedElement owner, object source, bool preview)
Parameters
Type | Name | Description |
---|---|---|
IPublished |
owner | The published element owning the property. |
System. |
source | The source value. |
System. |
preview | A value indicating whether content should be considered draft. |
Returns
Type | Description |
---|---|
System. |
The intermediate value. |
IsValue(Object, PropertyValueLevel)
Determines whether a value is an actual value, or not a value.
Declaration
bool? IsValue(object value, PropertyValueLevel level)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | |
Property |
level |
Returns
Type | Description |
---|---|
System. |
Remarks
Used by property.HasValue and, for instance, in fallback scenarios.