Share via


CachedModelMetadata<TPrototypeCache> Constructors

Definition

Overloads

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

Constructor for creating the prototype instances of the metadata class.

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

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

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

Constructor for creating the prototype instances of the metadata class.

protected CachedModelMetadata (System.Web.Mvc.CachedModelMetadata<TPrototypeCache> prototype, Func<object> modelAccessor);
new System.Web.Mvc.CachedModelMetadata<'PrototypeCache> : System.Web.Mvc.CachedModelMetadata<'PrototypeCache> * Func<obj> -> System.Web.Mvc.CachedModelMetadata<'PrototypeCache>
Protected Sub New (prototype As CachedModelMetadata(Of TPrototypeCache), modelAccessor As Func(Of Object))

Parameters

prototype
CachedModelMetadata<TPrototypeCache>

The prototype.

modelAccessor
Func<Object>

The model accessor.

Applies to

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

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

protected CachedModelMetadata (System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, TPrototypeCache prototypeCache);
new System.Web.Mvc.CachedModelMetadata<'PrototypeCache> : System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider * Type * Type * string * 'PrototypeCache -> System.Web.Mvc.CachedModelMetadata<'PrototypeCache>
Protected Sub New (provider As CachedDataAnnotationsModelMetadataProvider, containerType As Type, modelType As Type, propertyName As String, prototypeCache As TPrototypeCache)

Parameters

containerType
Type

The container type.

modelType
Type

The model type.

propertyName
String

The property name.

prototypeCache
TPrototypeCache

The prototype.

Applies to