แก้ไข

แชร์ผ่าน


ModelValidationNode Constructors

Definition

Initializes a new instance of the ModelValidationNode class.

Overloads

ModelValidationNode(ModelMetadata, String)

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

ModelValidationNode(ModelMetadata, String, IEnumerable<ModelValidationNode>)

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

ModelValidationNode(ModelMetadata, String)

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

public:
 ModelValidationNode(System::Web::ModelBinding::ModelMetadata ^ modelMetadata, System::String ^ modelStateKey);
public ModelValidationNode (System.Web.ModelBinding.ModelMetadata modelMetadata, string modelStateKey);
new System.Web.ModelBinding.ModelValidationNode : System.Web.ModelBinding.ModelMetadata * string -> System.Web.ModelBinding.ModelValidationNode
Public Sub New (modelMetadata As ModelMetadata, modelStateKey As String)

Parameters

modelMetadata
ModelMetadata

The model metadata.

modelStateKey
String

The model state key.

Applies to

ModelValidationNode(ModelMetadata, String, IEnumerable<ModelValidationNode>)

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

public:
 ModelValidationNode(System::Web::ModelBinding::ModelMetadata ^ modelMetadata, System::String ^ modelStateKey, System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelValidationNode ^> ^ childNodes);
public ModelValidationNode (System.Web.ModelBinding.ModelMetadata modelMetadata, string modelStateKey, System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelValidationNode> childNodes);
new System.Web.ModelBinding.ModelValidationNode : System.Web.ModelBinding.ModelMetadata * string * seq<System.Web.ModelBinding.ModelValidationNode> -> System.Web.ModelBinding.ModelValidationNode
Public Sub New (modelMetadata As ModelMetadata, modelStateKey As String, childNodes As IEnumerable(Of ModelValidationNode))

Parameters

modelMetadata
ModelMetadata

The model metadata.

modelStateKey
String

The model state key.

childNodes
IEnumerable<ModelValidationNode>

The model child nodes.

Exceptions

The modelMetadata or modelStateKey parameter is null.

Applies to