ComplexModel Constructor (ModelMetadata, IEnumerable(Of ModelMetadata))
.NET Framework (current version)
Initializes a new instance of the ComplexModel class.
Assembly: System.Web (in System.Web.dll)
Public Sub New ( modelMetadata As ModelMetadata, propertyMetadata As IEnumerable(Of ModelMetadata) )
Parameters
- modelMetadata
-
Type:
System.Web.ModelBinding.ModelMetadata
Metadata for the model.
- propertyMetadata
-
Type:
System.Collections.Generic.IEnumerable(Of 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: