ComplexModel Constructor (ModelMetadata, IEnumerable<ModelMetadata>)
.NET Framework (current version)
Initializes a new instance of the ComplexModel class.
Assembly: System.Web (in System.Web.dll)
public ComplexModel(
ModelMetadata modelMetadata,
IEnumerable<ModelMetadata> propertyMetadata
)
Parameters
- modelMetadata
-
Type:
System.Web.ModelBinding.ModelMetadata
Metadata for the model.
- propertyMetadata
-
Type:
System.Collections.Generic.IEnumerable<ModelMetadata>
Metadata for the properties of the model.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelMetadata or propertyMetadata parameter is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: