CachedDataAnnotationsModelMetadata Constructor

 

Initializes a new instance of the CachedDataAnnotationsModelMetadata class.

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

NameDescription
System_CAPS_pubmethodCachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.

System_CAPS_pubmethodCachedDataAnnotationsModelMetadata(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.

Return to top

CachedDataAnnotationsModelMetadata Constructor (CachedDataAnnotationsModelMetadata, Func<Object>)

Initializes a new instance of the CachedDataAnnotationsModelMetadata class using the prototype and model accessor.

public CachedDataAnnotationsModelMetadata(
	CachedDataAnnotationsModelMetadata prototype,
	Func<object> modelAccessor
)

Parameters

prototype
Type: System.Web.Mvc.CachedDataAnnotationsModelMetadata

The prototype.

modelAccessor
Type: System.Func<Object>

The model accessor.

Return to top

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.

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.

Return to top
Show: