Redigera

Dela via


ModelValidationNode.Validate Method

Definition

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.

Applies to