CachedDataAnnotationsModelMetadata Constructor
Initializes a new instance of the CachedDataAnnotationsModelMetadata class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) | Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor. |
![]() | CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) | Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the provider, container type, model type, property name and attributes. |
CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadata, Func<Object>)
Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.
public CachedDataAnnotationsModelMetadata( CachedDataAnnotationsModelMetadata prototype, Func<object> modelAccessor )
Parameters
- prototype
-
Type:
System.Web.Mvc.CachedDataAnnotationsModelMetadata
The prototype.
- modelAccessor
-
Type:
System.Func<Object>
The model accessor.
CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)
Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the provider, container type, model type, property name and attributes.
public CachedDataAnnotationsModelMetadata( CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, IEnumerable<Attribute> attributes )
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.
- attributes
-
Type:
System.Collections.Generic.IEnumerable<Attribute>
The attributes.
Show:
