CachedModelMetadata<TPrototypeCache> Constructor (DataAnnotationsModelMetadataProvider, Type, Type, String, TPrototypeCache)
Initializes a new instance of the CachedModelMetadata<TPrototypeCache> class.
Namespace: System.Web.Http.Metadata.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Sub New ( _
provider As DataAnnotationsModelMetadataProvider, _
containerType As Type, _
modelType As Type, _
propertyName As String, _
prototypeCache As TPrototypeCache _
)
'Usage
Dim provider As DataAnnotationsModelMetadataProvider
Dim containerType As Type
Dim modelType As Type
Dim propertyName As String
Dim prototypeCache As TPrototypeCache
Dim instance As New CachedModelMetadata(provider, _
containerType, modelType, propertyName, _
prototypeCache)
protected CachedModelMetadata(
DataAnnotationsModelMetadataProvider provider,
Type containerType,
Type modelType,
string propertyName,
TPrototypeCache prototypeCache
)
protected:
CachedModelMetadata(
DataAnnotationsModelMetadataProvider^ provider,
Type^ containerType,
Type^ modelType,
String^ propertyName,
TPrototypeCache prototypeCache
)
new :
provider:DataAnnotationsModelMetadataProvider *
containerType:Type *
modelType:Type *
propertyName:string *
prototypeCache:'TPrototypeCache -> CachedModelMetadata
protected function CachedModelMetadata(
provider : DataAnnotationsModelMetadataProvider,
containerType : Type,
modelType : Type,
propertyName : String,
prototypeCache : TPrototypeCache
)
Parameters
provider
Type: System.Web.Http.Metadata.Providers.DataAnnotationsModelMetadataProviderThe provider.
containerType
Type: System.TypeThe type of container.
modelType
Type: System.TypeThe type of the model.
propertyName
Type: System.StringThe name of the property.
prototypeCache
Type: TPrototypeCacheThe prototype cache.
See Also
Reference
CachedModelMetadata<TPrototypeCache> Class