CachedAssociatedMetadataProvider<TModelMetadata> CachedAssociatedMetadataProvider<TModelMetadata> 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>CachedAssociatedMetadataProvider<TModelMetadata>CachedAssociatedMetadataProvider<TModelMetadata>
Derived

Constructors

CachedAssociatedMetadataProvider<TModelMetadata>() CachedAssociatedMetadataProvider<TModelMetadata>() CachedAssociatedMetadataProvider<TModelMetadata>()

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

Properties

CacheItemPolicy CacheItemPolicy CacheItemPolicy

Gets the cache item policy.

CacheKeyPrefix CacheKeyPrefix CacheKeyPrefix

Gets the cache key prefix.

PrototypeCache PrototypeCache PrototypeCache

Gets the prototype cache.

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) 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>) CreateMetadataFromPrototype(TModelMetadata, Func<Object>) 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) CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String) CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String)

Creates a metadata prototype.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type)

Gets the metadata for the properties.

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property.

GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property.

GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type)

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

GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Applies to