Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyValidationError

    Represents a validation error for a content property.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing.Validation
    Assembly: Umbraco.Core.dll
    Syntax
    public class PropertyValidationError

    Constructors

    View Source

    PropertyValidationError()

    Declaration
    public PropertyValidationError()

    Properties

    View Source

    Alias

    Gets or sets the property type alias of the property that failed validation.

    Declaration
    public required string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    Culture

    Gets or sets the culture code for the property value that failed validation, or null for invariant properties.

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

    ErrorMessages

    Gets the collection of error messages describing the validation failures.

    Declaration
    public required string[] ErrorMessages { get; init; }
    Property Value
    Type Description
    string[]
    View Source

    JsonPath

    Gets the JSON path to the property value that failed validation.

    Declaration
    public required string JsonPath { get; init; }
    Property Value
    Type Description
    string
    View Source

    Segment

    Gets or sets the segment identifier for the property value that failed validation, or null for non-segmented properties.

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