Class ContentPropertyValidationResult
Custom System.ComponentModel.DataAnnotations.ValidationResult for content properties
Inheritance
System.Object
System.ComponentModel.DataAnnotations.ValidationResult
Namespace: Umbraco.Web.PropertyEditors.Validation
Assembly: Umbraco.Web.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 SourceContentPropertyValidationResult(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 SourceComplexEditorResults
Nested validation results for the content property
Declaration
public ComplexEditorValidationResult ComplexEditorResults { get; }
Property Value
Type | Description |
---|---|
ComplexEditorValidationResult |
Remarks
There can be nested results for complex editors that contain other editors
Methods
View SourceToString()
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 |