ModelValidationNode.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates the model.
Overloads
Validate(ModelBindingExecutionContext) |
Validates the model using the specified execution context. |
Validate(ModelBindingExecutionContext, ModelValidationNode) |
Validates the model using the specified execution context and parent node. |
Validate(ModelBindingExecutionContext)
Validates the model using the specified execution context.
public:
void Validate(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext);
public void Validate (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext);
member this.Validate : System.Web.ModelBinding.ModelBindingExecutionContext -> unit
Public Sub Validate (modelBindingExecutionContext As ModelBindingExecutionContext)
Parameters
- modelBindingExecutionContext
- ModelBindingExecutionContext
The execution context.
Exceptions
The modelBindingExecutionContext
parameter is null
.
Remarks
If the SuppressValidation property is true
, this method does nothing.
Applies to
Validate(ModelBindingExecutionContext, ModelValidationNode)
Validates the model using the specified execution context and parent node.
public:
void Validate(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelValidationNode ^ parentNode);
public void Validate (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelValidationNode parentNode);
member this.Validate : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelValidationNode -> unit
Public Sub Validate (modelBindingExecutionContext As ModelBindingExecutionContext, parentNode As ModelValidationNode)
Parameters
- modelBindingExecutionContext
- ModelBindingExecutionContext
The execution context.
- parentNode
- ModelValidationNode
The parent node.