Interface IObjectValidator
Namespace: Volo.Abp.Validation
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 |
---|---|
Task<List<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 |
---|---|
Task |