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 SourcePropertyTypeValidation()
Declaration
public PropertyTypeValidation()
Properties
View SourceMandatory
Gets or sets a value indicating whether the property type is mandatory.
Declaration
public bool Mandatory { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MandatoryMessage
Gets or sets the message displayed when the property is mandatory.
Declaration
public string? MandatoryMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
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 |