Compartilhar via


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

  • containerType
    Type: System.Type

    The type of container.

See Also

Reference

CachedModelMetadata<TPrototypeCache> Class

CachedModelMetadata<TPrototypeCache> Overload

System.Web.Http.Metadata.Providers Namespace