Share via


CachedDataAnnotationsModelMetadata Constructor (DataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)

Initializes a new instance of the CachedDataAnnotationsModelMetadata class.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Sub New ( _
    provider As DataAnnotationsModelMetadataProvider, _
    containerType As Type, _
    modelType As Type, _
    propertyName As String, _
    attributes As IEnumerable(Of Attribute) _
)
'Usage
Dim provider As DataAnnotationsModelMetadataProvider 
Dim containerType As Type 
Dim modelType As Type 
Dim propertyName As String 
Dim attributes As IEnumerable(Of Attribute)

Dim instance As New CachedDataAnnotationsModelMetadata(provider, _
    containerType, modelType, propertyName, _
    attributes)
public CachedDataAnnotationsModelMetadata(
    DataAnnotationsModelMetadataProvider provider,
    Type containerType,
    Type modelType,
    string propertyName,
    IEnumerable<Attribute> attributes
)
public:
CachedDataAnnotationsModelMetadata(
    DataAnnotationsModelMetadataProvider^ provider, 
    Type^ containerType, 
    Type^ modelType, 
    String^ propertyName, 
    IEnumerable<Attribute^>^ attributes
)
new : 
        provider:DataAnnotationsModelMetadataProvider * 
        containerType:Type * 
        modelType:Type * 
        propertyName:string * 
        attributes:IEnumerable<Attribute> -> CachedDataAnnotationsModelMetadata
public function CachedDataAnnotationsModelMetadata(
    provider : DataAnnotationsModelMetadataProvider, 
    containerType : Type, 
    modelType : Type, 
    propertyName : String, 
    attributes : IEnumerable<Attribute>
)

Parameters

  • containerType
    Type: System.Type

    The type of the container.

See Also

Reference

CachedDataAnnotationsModelMetadata Class

CachedDataAnnotationsModelMetadata Overload

System.Web.Http.Metadata.Providers Namespace