ModelValidationNode Constructor (ModelMetadata, String, IEnumerable(Of 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.
Assembly: System.Web (in System.Web.dll)
Public Sub New ( modelMetadata As ModelMetadata, modelStateKey As String, childNodes As IEnumerable(Of 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(Of ModelValidationNode)
The model child nodes.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelMetadata or modelStateKey parameter is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: