CachedModelMetadata<'TPrototypeCache> Constructor
Initializes a new instance of the CachedModelMetadata<'TPrototypeCache> class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | CachedModelMetadata<'TPrototypeCache>(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, 'TPrototypeCache) | Constructor for creating real instances of the metadata class based on a prototype. |
![]() | CachedModelMetadata<'TPrototypeCache>(CachedModelMetadata<'TPrototypeCache>, Func<Object>) | Constructor for creating the prototype instances of the metadata class. |
Two constructors are provided, one for creating real instances of the metadata class based on a prototype and one for creating the prototype instances of the metadata class.
CachedModelMetadata<'TPrototypeCache> Constructor (CachedDataAnnotationsModelMetadataProvider, Type, Type, String, 'TPrototypeCache)
Constructor for creating real instances of the metadata class based on a prototype.
Parameters
- provider
-
Type:
System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider
The provider.
- containerType
-
Type:
System.Type
The container type.
- modelType
-
Type:
System.Type
The model type.
- propertyName
-
Type:
System.String
The property name.
- prototypeCache
-
Type:
TPrototypeCache
The prototype.
CachedModelMetadata<'TPrototypeCache> Constructor (CachedModelMetadata<'TPrototypeCache>, Func<Object>)
Constructor for creating the prototype instances of the metadata class.
Parameters
- prototype
-
Type:
System.Web.Mvc.CachedModelMetadata<'TPrototypeCache>
The prototype.
- modelAccessor
-
Type:
System.Func<Object>
The model accessor.
Show:
