Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IPropertyType

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IPropertyType : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    Alias

    Gets of sets the alias of the property type.

    Declaration
    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
    int DataTypeId { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    DataTypeKey

    Declaration
    Guid DataTypeKey { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    Description

    Gets of sets the description of the property type.

    Declaration
    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
    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
    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
    string MandatoryMessage { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    Gets of sets the name of the property type.

    Declaration
    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
    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
    Lazy<int>? PropertyGroupId { get; set; }
    Property Value
    Type Description
    System.Nullable<Lazy<System.Int32>>
    Remarks

    For generic properties, the value is null.

    View Source

    SortOrder

    Gets of sets the sort order of the property type.

    Declaration
    int SortOrder { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    SupportsPublishing

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

    ValidationRegExp

    Gets or sets the regular expression validating the property values.

    Declaration
    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
    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
    ValueStorageType ValueStorageType { get; set; }
    Property Value
    Type Description
    ValueStorageType
    View Source

    Variations

    Gets or sets the content variation of the property type.

    Declaration
    ContentVariation Variations { get; set; }
    Property Value
    Type Description
    ContentVariation

    Methods

    View Source

    SupportsVariation(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
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Alias
      • DataTypeId
      • DataTypeKey
      • Description
      • LabelOnTop
      • Mandatory
      • MandatoryMessage
      • Name
      • PropertyEditorAlias
      • PropertyGroupId
      • SortOrder
      • SupportsPublishing
      • ValidationRegExp
      • ValidationRegExpMessage
      • ValueStorageType
      • Variations
    • Methods
      • SupportsVariation(String, String, Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX