Class ComplexEditorElementTypeValidationResult
A collection of ComplexEditorPropertyTypeValidationResult for an element type within complex editor represented by an Element Type
Inheritance
System.Object
System.ComponentModel.DataAnnotations.ValidationResult
Namespace: Umbraco.Web.PropertyEditors.Validation
Assembly: Umbraco.Web.dll
Syntax
public class ComplexEditorElementTypeValidationResult : ValidationResult
Remarks
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 SourceComplexEditorElementTypeValidationResult(String, Guid)
Declaration
public ComplexEditorElementTypeValidationResult(string elementTypeAlias, Guid blockId)
Parameters
Type | Name | Description |
---|---|---|
System.String | elementTypeAlias | |
System.Guid | blockId |
Properties
View SourceBlockId
The Block ID of the validation result
Declaration
public Guid BlockId { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Remarks
This is the GUID id of the content item based on the element type
ElementTypeAlias
The element type alias of the validation result
Declaration
public string ElementTypeAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is useful for debugging purposes but it's not actively used in the angular app
ValidationResults
Declaration
public IList<ComplexEditorPropertyTypeValidationResult> ValidationResults { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<ComplexEditorPropertyTypeValidationResult> |