View Source
Class EditorValidator<T>
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public abstract class EditorValidator<T> : IEditorValidator, IDiscoverable
Type Parameters
Name |
Description |
T |
The validated object type.
|
Properties
View Source
ModelType
Declaration
public Type ModelType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
View Source
Validate(T)
Declaration
protected abstract IEnumerable<ValidationResult> Validate(T model)
Parameters
Type |
Name |
Description |
T |
model |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|
View Source
Validate(Object)
Declaration
public IEnumerable<ValidationResult> Validate(object model)
Parameters
Type |
Name |
Description |
System.Object |
model |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|