ModelValidationNode.Validate Method (HttpActionContext, ModelValidationNode)
Validates the model using the specified execution context and parent node.
Namespace: System.Web.Http.Validation
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub Validate ( _
actionContext As HttpActionContext, _
parentNode As ModelValidationNode _
)
'Usage
Dim instance As ModelValidationNode
Dim actionContext As HttpActionContext
Dim parentNode As ModelValidationNode
instance.Validate(actionContext, parentNode)
public void Validate(
HttpActionContext actionContext,
ModelValidationNode parentNode
)
public:
void Validate(
HttpActionContext^ actionContext,
ModelValidationNode^ parentNode
)
member Validate :
actionContext:HttpActionContext *
parentNode:ModelValidationNode -> unit
public function Validate(
actionContext : HttpActionContext,
parentNode : ModelValidationNode
)
Parameters
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The action context.
- parentNode
Type: System.Web.Http.Validation.ModelValidationNode
The parent node.