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.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

new : 
        provider:CachedDataAnnotationsModelMetadataProvider * 
        containerType:Type * 
        modelType:Type * 
        propertyName:string * 
        attributes:IEnumerable<Attribute> -> CachedDataAnnotationsModelMetadata

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: