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)

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ModelMetadataProvider
    System.Web.Mvc.AssociatedMetadataProvider
      System.Web.Mvc.CachedAssociatedMetadataProvider<TModelMetadata>
        System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider

Syntax

public class CachedDataAnnotationsModelMetadataProvider : CachedAssociatedMetadataProvider<CachedDataAnnotationsModelMetadata>
public ref class CachedDataAnnotationsModelMetadataProvider : CachedAssociatedMetadataProvider<CachedDataAnnotationsModelMetadata^>
type CachedDataAnnotationsModelMetadataProvider = 
    class
        inherit CachedAssociatedMetadataProvider<CachedDataAnnotationsModelMetadata>
    end
Public Class CachedDataAnnotationsModelMetadataProvider
    Inherits CachedAssociatedMetadataProvider(Of CachedDataAnnotationsModelMetadata)

Constructors

Name Description
System_CAPS_pubmethod CachedDataAnnotationsModelMetadataProvider()

Initializes a new instance of the CachedDataAnnotationsModelMetadataProvider class.

Properties

Name Description
System_CAPS_protproperty CacheItemPolicy

Gets the cache item policy.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_protproperty CacheKeyPrefix

Gets the cache key prefix.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_protproperty PrototypeCache

Gets the prototype cache.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

Methods

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

When overridden in a derived class, creates the cached model metadata for the property.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_protmethod CreateMetadataFromPrototype(CachedDataAnnotationsModelMetadata, Func<Object>)

Returns a container of real instances of the cached metadata class based on prototype and model accessor.(Overrides CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadataFromPrototype(TModelMetadata, Func<Object>).)

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

Returns a container prototype instances of the metadata class.(Overrides CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

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

Gets a list of attributes.(Inherited from AssociatedMetadataProvider.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetMetadataForProperties(Object, Type)

Gets the metadata for the properties.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

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

Returns the metadata for the specified property.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

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

Returns the metadata for the specified property.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_pubmethod GetMetadataForType(Func<Object>, Type)

Returns the cached metadata for the specified property using the type of the model.(Inherited from CachedAssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.(Inherited from AssociatedMetadataProvider.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

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

See Also

System.Web.Mvc Namespace

Return to top