ModelMetadata Constructor
Visual Studio 2010
Initializes a new instance of the ModelMetadata class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public ModelMetadata( ModelMetadataProvider provider, Type containerType, Func<Object> modelAccessor, Type modelType, string propertyName )
Parameters
- provider
- Type: System.Web.Mvc.ModelMetadataProvider
The provider.
- containerType
- Type: System.Type
The type of the container.
- 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.
Community Additions
ADD
Show: