Interface IEditorValidator
Provides a general object validator.
Namespace: Umbraco.Cms.Core.Editors
Assembly: Umbraco.Core.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 |
|---|---|
| Type |
Methods
View SourceValidate(Object)
Validates an object.
Declaration
IEnumerable<ValidationResult> Validate(object model)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | model |
Returns
| Type | Description |
|---|---|
| IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |