A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Models.PropertyType.html below:

View Source Class PropertyType

Represents a property type.

Inheritance

System.Object

Namespace: Umbraco.Cms.Core.Models Assembly: Umbraco.Core.dll Syntax
[DataContract(IsReference = true)]
public class PropertyType : EntityBase, IPropertyType, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors View Source PropertyType(IShortStringHelper, String, ValueStorageType)

Initializes a new instance of the PropertyType class.

Declaration
public PropertyType(IShortStringHelper shortStringHelper, string propertyEditorAlias, ValueStorageType valueStorageType)
Parameters View Source PropertyType(IShortStringHelper, String, ValueStorageType, Boolean, String)

Initializes a new instance of the PropertyType class.

Declaration
public PropertyType(IShortStringHelper shortStringHelper, string propertyEditorAlias, ValueStorageType valueStorageType, bool forceValueStorageType, string propertyTypeAlias = null)
Parameters Type Name Description IShortStringHelper shortStringHelper System.String propertyEditorAlias ValueStorageType valueStorageType System.Boolean forceValueStorageType System.String propertyTypeAlias View Source PropertyType(IShortStringHelper, String, ValueStorageType, String)

Initializes a new instance of the PropertyType class.

Declaration
public PropertyType(IShortStringHelper shortStringHelper, string propertyEditorAlias, ValueStorageType valueStorageType, string propertyTypeAlias)
Parameters View Source PropertyType(IShortStringHelper, IDataType)

Initializes a new instance of the PropertyType class.

Declaration
public PropertyType(IShortStringHelper shortStringHelper, IDataType dataType)
Parameters View Source PropertyType(IShortStringHelper, IDataType, String)

Initializes a new instance of the PropertyType class.

Declaration
public PropertyType(IShortStringHelper shortStringHelper, IDataType dataType, string propertyTypeAlias)
Parameters Properties View Source Alias

Gets of sets the alias of the property type.

Declaration
[DataMember]
public virtual string Alias { get; set; }
Property Value Type Description System.String View Source DataTypeId

Gets or sets the identifier of the datatype for this property type.

Declaration
[DataMember]
public int DataTypeId { get; set; }
Property Value Type Description System.Int32 View Source DataTypeKey Declaration
[DataMember]
public Guid DataTypeKey { get; set; }
Property Value View Source Description

Gets of sets the description of the property type.

Declaration
[DataMember]
public string Description { get; set; }
Property Value Type Description System.String View Source LabelOnTop

Gets or sets a value indicating whether the label of this property type should be displayed on top.

Declaration
[DataMember]
public bool LabelOnTop { get; set; }
Property Value Type Description System.Boolean View Source Mandatory

Gets of sets a value indicating whether a value for this property type is required.

Declaration
[DataMember]
public bool Mandatory { get; set; }
Property Value Type Description System.Boolean View Source MandatoryMessage

Gets or sets the custom validation message used when a value for this PropertyType is required

Declaration
[DataMember]
public string MandatoryMessage { get; set; }
Property Value Type Description System.String View Source Name

Gets of sets the name of the property type.

Declaration
[DataMember]
public string Name { get; set; }
Property Value Type Description System.String View Source PropertyEditorAlias

Gets or sets the alias of the property editor for this property type.

Declaration
[DataMember]
public string PropertyEditorAlias { get; set; }
Property Value Type Description System.String View Source PropertyGroupId

Gets or sets the identifier of the property group this property type belongs to.

Declaration
[DataMember]
public Lazy<int>? PropertyGroupId { get; set; }
Property Value Type Description System.Nullable<Lazy<System.Int32>> View Source SortOrder

Gets of sets the sort order of the property type.

Declaration
[DataMember]
public int SortOrder { get; set; }
Property Value Type Description System.Int32 View Source SupportsPublishing

Gets a value indicating whether the content type owning this property type is publishing.

Declaration
public bool SupportsPublishing { get; set; }
Property Value Type Description System.Boolean View Source ValidationRegExp

Gets or sets the regular expression validating the property values.

Declaration
[DataMember]
public string ValidationRegExp { get; set; }
Property Value Type Description System.String View Source ValidationRegExpMessage

Gets or sets the custom validation message used when a pattern for this PropertyType must be matched

Declaration
[DataMember]
public string ValidationRegExpMessage { get; set; }
Property Value Type Description System.String View Source ValueStorageType

Gets or sets the database type for storing value for this property type.

Declaration
[DataMember]
public ValueStorageType ValueStorageType { get; set; }
Property Value View Source Variations

Gets or sets the content variation of the property type.

Declaration
public ContentVariation Variations { get; set; }
Property Value Methods View Source Equals(PropertyType) Declaration
public bool Equals(PropertyType other)
Parameters Returns Type Description System.Boolean View Source GetHashCode() Declaration
public override int GetHashCode()
Returns Type Description System.Int32 View Source PerformDeepClone(Object)

Used by inheritors to modify the DeepCloning logic

Declaration
protected override void PerformDeepClone(object clone)
Parameters Type Name Description System.Object clone View Source SupportsVariation(String, String, Boolean)

Determines whether the property type supports a combination of culture and segment.

Declaration
public 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4