CachedModelMetadata<'TPrototypeCache> Constructor

 

Initializes a new instance of the CachedModelMetadata<'TPrototypeCache> class.

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

NameDescription
System_CAPS_protmethodCachedModelMetadata<'TPrototypeCache>(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, 'TPrototypeCache)

Constructor for creating real instances of the metadata class based on a prototype.

System_CAPS_protmethodCachedModelMetadata<'TPrototypeCache>(CachedModelMetadata<'TPrototypeCache>, Func<Object>)

Constructor for creating the prototype instances of the metadata class.

Two constructors are provided, one for creating real instances of the metadata class based on a prototype and one for creating the prototype instances of the metadata class.

Return to top

CachedModelMetadata<'TPrototypeCache> Constructor (CachedDataAnnotationsModelMetadataProvider, Type, Type, String, 'TPrototypeCache)

Constructor for creating real instances of the metadata class based on a prototype.

No code example is currently available or this language may not be supported.

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.

prototypeCache
Type: TPrototypeCache

The prototype.

Return to top

CachedModelMetadata<'TPrototypeCache> Constructor (CachedModelMetadata<'TPrototypeCache>, Func<Object>)

Constructor for creating the prototype instances of the metadata class.

No code example is currently available or this language may not be supported.

Parameters

prototype
Type: System.Web.Mvc.CachedModelMetadata<'TPrototypeCache>

The prototype.

modelAccessor
Type: System.Func<Object>

The model accessor.

Return to top
Show: