Delen via


CachedAssociatedMetadataProvider<TModelMetadata> Class

Definition

Provides an abstract class to implement a cached metadata provider.

public abstract class CachedAssociatedMetadataProvider<TModelMetadata> : System.Web.Mvc.AssociatedMetadataProvider where TModelMetadata : ModelMetadata
type CachedAssociatedMetadataProvider<'ModelMetadata (requires 'ModelMetadata :> ModelMetadata)> = class
    inherit AssociatedMetadataProvider
Public MustInherit Class CachedAssociatedMetadataProvider(Of TModelMetadata)
Inherits AssociatedMetadataProvider

Type Parameters

TModelMetadata
Inheritance
CachedAssociatedMetadataProvider<TModelMetadata>
Derived

Constructors

CachedAssociatedMetadataProvider<TModelMetadata>()

Initializes a new instance of the CachedAssociatedMetadataProvider<TModelMetadata> class.

Properties

CacheItemPolicy

Gets the cache item policy.

CacheKeyPrefix

Gets the cache key prefix.

PrototypeCache

Gets the prototype cache.

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

When overridden in a derived class, creates the cached model metadata for the property.

CreateMetadataFromPrototype(TModelMetadata, Func<Object>)

Creates prototype metadata by applying the prototype and model access to yield the final metadata.

CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String)

Creates a metadata prototype.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type)

Gets the metadata for the properties.

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property.

GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property.

GetMetadataForType(Func<Object>, Type)

Returns the cached metadata for the specified property using the type of the model.

GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Applies to