Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyTypeValidation

    Defines the set of validation rules applied to a property type within a content type in Umbraco.

    Inheritance
    object
    Namespace: Umbraco.Cms.Api.Management.ViewModels.ContentType
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public class PropertyTypeValidation

    Constructors

    View Source

    PropertyTypeValidation()

    Declaration
    public PropertyTypeValidation()

    Properties

    View Source

    Mandatory

    Gets or sets a value indicating whether the property type is mandatory.

    Declaration
    public bool Mandatory { get; set; }
    Property Value
    Type Description
    bool
    View Source

    MandatoryMessage

    Gets or sets the message displayed when the property is mandatory.

    Declaration
    public string? MandatoryMessage { get; set; }
    Property Value
    Type Description
    string
    View Source

    RegEx

    Gets or sets the regular expression pattern that is used to validate the value of the property type.

    Declaration
    public string? RegEx { get; set; }
    Property Value
    Type Description
    string
    View Source

    RegExMessage

    Gets or sets the message to display when the regular expression validation fails.

    Declaration
    public string? RegExMessage { get; set; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX