CachedAssociatedMetadataProvider(Of TModelMetadata) Class

Provides an abstract class to implement a cached metadata provider.

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

Public MustInherit Class CachedAssociatedMetadataProvider(Of TModelMetadata As ModelMetadata) _
	Inherits AssociatedMetadataProvider
Dim instance As CachedAssociatedMetadataProvider(Of TModelMetadata)

Type Parameters


The CachedAssociatedMetadataProvider(Of TModelMetadata) type exposes the following members.

Protected methodCachedAssociatedMetadataProvider(Of TModelMetadata)Initializes a new instance of the CachedAssociatedMetadataProvider(Of TModelMetadata) class.

Protected propertyCacheItemPolicyGets the cache item policy.
Protected propertyCacheKeyPrefixGets the cache key prefix.
Protected propertyPrototypeCacheGets the prototype cache.

Protected methodCreateMetadataWhen overridden in a derived class, creates the cached model metadata for the property. (Overrides AssociatedMetadataProvider.CreateMetadata(IEnumerable(Of Attribute), Type, Func(Of Object), Type, String).)
Protected methodCreateMetadataFromPrototypeCreates prototype metadata by applying the prototype and model access to yield the final metadata.
Protected methodCreateMetadataPrototypeCreates a metadata prototype.
Public methodEquals (Inherited from Object.)
Protected methodFilterAttributesGets a list of attributes. (Inherited from AssociatedMetadataProvider.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetMetadataForPropertiesGets the metadata for the properties. (Overrides AssociatedMetadataProvider.GetMetadataForProperties(Object, Type).)
Protected methodGetMetadataForProperty(Func(Of Object), Type, PropertyDescriptor)Returns the metadata for the specified property. (Overrides AssociatedMetadataProvider.GetMetadataForProperty(Func(Of Object), Type, PropertyDescriptor).)
Public methodGetMetadataForProperty(Func(Of Object), Type, String)Returns the metadata for the specified property. (Overrides AssociatedMetadataProvider.GetMetadataForProperty(Func(Of Object), Type, String).)
Public methodGetMetadataForTypeReturns the cached metadata for the specified property using the type of the model. (Overrides AssociatedMetadataProvider.GetMetadataForType(Func(Of Object), Type).)
Public methodGetType (Inherited from Object.)
Protected methodGetTypeDescriptorReturns the type descriptor from the specified type. (Inherited from AssociatedMetadataProvider.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.