Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentPropertyValidationResult

    Custom System.ComponentModel.DataAnnotations.ValidationResult for content properties

    Inheritance
    System.Object
    System.ComponentModel.DataAnnotations.ValidationResult
    Namespace: Umbraco.Cms.Web.BackOffice.PropertyEditors.Validation
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public class ContentPropertyValidationResult : ValidationResult
    Remarks

    This clones the original result and then ensures the nested result if it's the correct type. For a more indepth explanation of how server side validation works with the angular app, see this GitHub PR: https://github.com/umbraco/Umbraco-CMS/pull/8339

    Constructors

    View Source

    ContentPropertyValidationResult(ValidationResult, String, String)

    Declaration
    public ContentPropertyValidationResult(ValidationResult nested, string culture, string segment)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationResult nested
    System.String culture
    System.String segment

    Properties

    View Source

    ComplexEditorResults

    Nested validation results for the content property

    Declaration
    public ComplexEditorValidationResult? ComplexEditorResults { get; }
    Property Value
    Type Description
    System.Nullable<ComplexEditorValidationResult>
    Remarks

    There can be nested results for complex editors that contain other editors

    Methods

    View Source

    ToString()

    Return the System.ComponentModel.DataAnnotations.ValidationResult.ErrorMessage if ComplexEditorResults is null, else the serialized complex validation results

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentPropertyValidationResult(ValidationResult, String, String)
    • Properties
      • ComplexEditorResults
    • Methods
      • ToString()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX