Method | Description | |
---|---|---|
Validate ( object model, |
Determines whether the model is valid and adds any validation errors to the actionContext's ModelStateDictionary
|
Method | Description | |
---|---|---|
CalculateKey ( ValidationContext validationContext ) : string | ||
CustomValidation ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext, object model ) : bool? | ||
ValidateNodeAndChildren ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext, object container ) : bool |
Method | Description | |
---|---|---|
ShallowValidate ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext, object container ) : bool | ||
ValidateElements ( IEnumerable model, ValidationContext validationContext ) : bool | ||
ValidateProperties ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext ) : bool |
protected static CalculateKey ( ValidationContext validationContext ) : string | ||
validationContext | ValidationContext | |
return | string |
protected CustomValidation ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext, object model ) : bool? | ||
metadata | System.Web.Http.Metadata.ModelMetadata | |
validationContext | ValidationContext | |
model | object | |
return | bool? |
public Validate ( object model, |
||
model | object | The model to be validated. |
type | The |
|
metadataProvider | System.Web.Http.Metadata.ModelMetadataProvider | The |
actionContext | System.Web.Http.Controllers.HttpActionContext | The |
keyPrefix | string | The |
return | bool |
protected ValidateNodeAndChildren ( System.Web.Http.Metadata.ModelMetadata metadata, ValidationContext validationContext, object container ) : bool | ||
metadata | System.Web.Http.Metadata.ModelMetadata | |
validationContext | ValidationContext | |
container | object | |
return | bool |