Interface IObjectValidator
Assembly: Volo.Abp.Validation.dll
Syntax
public interface IObjectValidator
Methods
GetErrorsAsync(object, string, bool)
Declaration
Task<List<ValidationResult>> GetErrorsAsync(object validatingObject, string name = null, bool allowNull = false)
Parameters
| Type |
Name |
Description |
| object |
validatingObject |
|
| string |
name |
|
| bool |
allowNull |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><System.ComponentModel.DataAnnotations.ValidationResult>> |
|
ValidateAsync(object, string, bool)
Declaration
Task ValidateAsync(object validatingObject, string name = null, bool allowNull = false)
Parameters
| Type |
Name |
Description |
| object |
validatingObject |
|
| string |
name |
|
| bool |
allowNull |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Extension Methods