ModelMetadata Constructor (ModelMetadataProvider, Type, Func<Object>, Type, String)
.NET Framework (current version)
Initializes a new instance of the ModelMetadata class.
Assembly: System.Web (in System.Web.dll)
new : provider:ModelMetadataProvider * containerType:Type * modelAccessor:Func<Object> * modelType:Type * propertyName:string -> ModelMetadata
Parameters
- provider
-
Type:
System.Web.ModelBinding.ModelMetadataProvider
The provider object.
- containerType
-
Type:
System.Type
The type of the container, or null to create metadata for the model type.
- modelAccessor
-
Type:
System.Func<Object>
The model accessor.
- modelType
-
Type:
System.Type
The type of the model.
- propertyName
-
Type:
System.String
The name of the property, or null to create metadata for the model type.
.NET Framework
Available since 4.5
Available since 4.5
Show: