Interface IPropertyType
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IPropertyType : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceAlias
Gets of sets the alias of the property type.
Declaration
string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DataTypeId
Gets or sets the identifier of the datatype for this property type.
Declaration
int DataTypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DataTypeKey
Declaration
Guid DataTypeKey { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Description
Gets of sets the description of the property type.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LabelOnTop
Gets or sets a value indicating whether the label of this property type should be displayed on top.
Declaration
bool LabelOnTop { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Mandatory
Gets of sets a value indicating whether a value for this property type is required.
Declaration
bool Mandatory { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MandatoryMessage
Gets or sets the custom validation message used when a value for this PropertyType is required
Declaration
string MandatoryMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets of sets the name of the property type.
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyEditorAlias
Gets or sets the alias of the property editor for this property type.
Declaration
string PropertyEditorAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyGroupId
Gets or sets the identifier of the property group this property type belongs to.
Declaration
Lazy<int>? PropertyGroupId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Lazy<System.Int32>> |
Remarks
For generic properties, the value is null
.
SortOrder
Gets of sets the sort order of the property type.
Declaration
int SortOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SupportsPublishing
Declaration
bool SupportsPublishing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ValidationRegExp
Gets or sets the regular expression validating the property values.
Declaration
string ValidationRegExp { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValidationRegExpMessage
Gets or sets the custom validation message used when a pattern for this PropertyType must be matched
Declaration
string ValidationRegExpMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ValueStorageType
Gets or sets the database type for storing value for this property type.
Declaration
ValueStorageType ValueStorageType { get; set; }
Property Value
Type | Description |
---|---|
ValueStorageType |
Variations
Gets or sets the content variation of the property type.
Declaration
ContentVariation Variations { get; set; }
Property Value
Type | Description |
---|---|
ContentVariation |
Methods
View SourceSupportsVariation(String, String, Boolean)
Determines whether the property type supports a combination of culture and segment.
Declaration
bool SupportsVariation(string culture, string segment, bool wildcards = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | culture | The culture. |
System.String | segment | The segment. |
System.Boolean | wildcards | A value indicating whether wildcards are valid. |
Returns
Type | Description |
---|---|
System.Boolean |