Export (0) Print
Expand All

CachedDataAnnotationsModelMetadataProvider Class

Implements the default cached model metadata provider for ASP.NET MVC.

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

public class CachedDataAnnotationsModelMetadataProvider : CachedAssociatedMetadataProvider<CachedDataAnnotationsModelMetadata>

The CachedDataAnnotationsModelMetadataProvider type exposes the following members.

  NameDescription
Public methodCachedDataAnnotationsModelMetadataProviderInitializes a new instance of the CachedDataAnnotationsModelMetadataProvider class.
Top

  NameDescription
Protected propertyCacheItemPolicyGets the cache item policy. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Protected propertyCacheKeyPrefixGets the cache key prefix. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Protected propertyPrototypeCacheGets the prototype cache. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Top

  NameDescription
Protected methodCreateMetadataWhen overridden in a derived class, creates the cached model metadata for the property. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Protected methodCreateMetadataFromPrototypeReturns a container of real instances of the cached metadata class based on prototype and model accessor. (Overrides CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadataFromPrototype(TModelMetadata, Func<Object>).)
Protected methodCreateMetadataPrototypeReturns a container prototype instances of the metadata class. (Overrides CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String).)
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. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Protected methodGetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)Returns the metadata for the specified property. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Public methodGetMetadataForProperty(Func<Object>, Type, String)Returns the metadata for the specified property. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
Public methodGetMetadataForTypeReturns the cached metadata for the specified property using the type of the model. (Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)
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.)
Top

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