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)

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: