Share via


ModelValidationNode.Validate Method

 

Validates the model.

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Overload List

Name Description
System_CAPS_pubmethod Validate(ControllerContext)

Validates the model using the specified controller context.

System_CAPS_pubmethod Validate(ControllerContext, ModelValidationNode)

Validates the model using the specified controller context and parent node.

See Also

ModelValidationNode Class
Microsoft.Web.Mvc.ModelBinding Namespace

Return to top

ModelValidationNode.Validate Method (ControllerContext)

Validates the model using the specified controller context.

Syntax

public void Validate(
    ControllerContext controllerContext
)
public:
void Validate(
    ControllerContext^ controllerContext
)
member Validate : 
        controllerContext:ControllerContext -> unit
Public Sub Validate (
    controllerContext As ControllerContext
)

Parameters

Return to top

ModelValidationNode.Validate Method (ControllerContext, ModelValidationNode)

Validates the model using the specified controller context and parent node.

Syntax

public void Validate(
    ControllerContext controllerContext,
    ModelValidationNode parentNode
)
public:
void Validate(
    ControllerContext^ controllerContext,
    ModelValidationNode^ parentNode
)
member Validate : 
        controllerContext:ControllerContext *
        parentNode:ModelValidationNode -> unit
Public Sub Validate (
    controllerContext As ControllerContext,
    parentNode As ModelValidationNode
)

Parameters

Return to top