ModelValidationNode.Validate Method
Validates the model.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
Name | Description | |
---|---|---|
Validate(ControllerContext) | Validates the model using the specified controller context. |
|
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
controllerContext
Type: System.Web.Mvc.ControllerContextThe controller context.
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
controllerContext
Type: System.Web.Mvc.ControllerContextThe controller context.
parentNode
Type: Microsoft.Web.Mvc.ModelBinding.ModelValidationNodeThe parent node.
Return to top