Interface IEditorValidator
Provides a general object validator.
Namespace: Umbraco.Web.Editors
Assembly: Umbraco.Web.dll
Syntax
public interface IEditorValidator : IDiscoverable
Properties
View SourceModelType
Gets the object type validated by this validator.
Declaration
Type ModelType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
View SourceValidate(Object)
Validates an object.
Declaration
IEnumerable<ValidationResult> Validate(object model)
Parameters
Type | Name | Description |
---|---|---|
System.Object | model |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |