ModelValidationNode Constructor (ModelMetadata, String, IEnumerable<ModelValidationNode>)

.NET Framework (current version)
 

Initializes a new instance of the ModelValidationNode class, using the model metadata, the model state key, and child model-validation nodes.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

new : 
        modelMetadata:ModelMetadata *
        modelStateKey:string *
        childNodes:IEnumerable<ModelValidationNode> -> ModelValidationNode

Parameters

modelMetadata
Type: System.Web.ModelBinding.ModelMetadata

The model metadata.

modelStateKey
Type: System.String

The model state key.

childNodes
Type: System.Collections.Generic.IEnumerable<ModelValidationNode>

The model child nodes.

Exception Condition
ArgumentNullException

The modelMetadata or modelStateKey parameter is null.

.NET Framework
Available since 4.5
Return to top
Show: