CachedAssociatedMetadataProvider<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)

Inheritance Hierarchy

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

Syntax

public abstract class CachedAssociatedMetadataProvider<TModelMetadata> : AssociatedMetadataProvider
where TModelMetadata : ModelMetadata
generic<typename TModelMetadata>
where TModelMetadata : ModelMetadata
public ref class CachedAssociatedMetadataProvider abstract : AssociatedMetadataProvider
[<AbstractClass>]
type CachedAssociatedMetadataProvider<'TModelMetadata when 'TModelMetadata : ModelMetadata> = 
    class
        inherit AssociatedMetadataProvider
    end
Public MustInherit Class CachedAssociatedMetadataProvider(Of TModelMetadata As ModelMetadata)
    Inherits AssociatedMetadataProvider

Type Parameters

  • TModelMetadata

Constructors

Name Description
System_CAPS_protmethod CachedAssociatedMetadataProvider<TModelMetadata>()

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

Properties

Name Description
System_CAPS_protproperty CacheItemPolicy

Gets the cache item policy.

System_CAPS_protproperty CacheKeyPrefix

Gets the cache key prefix.

System_CAPS_protproperty PrototypeCache

Gets the prototype cache.

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.(Overrides AssociatedMetadataProvider.CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String).)

System_CAPS_protmethod CreateMetadataFromPrototype(TModelMetadata, Func<Object>)

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

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

Creates a metadata prototype.

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.(Overrides AssociatedMetadataProvider.GetMetadataForProperties(Object, Type).)

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

Returns the metadata for the specified property.(Overrides AssociatedMetadataProvider.GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor).)

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

Returns the metadata for the specified property.(Overrides AssociatedMetadataProvider.GetMetadataForProperty(Func<Object>, Type, String).)

System_CAPS_pubmethod GetMetadataForType(Func<Object>, Type)

Returns the cached metadata for the specified property using the type of the model.(Overrides AssociatedMetadataProvider.GetMetadataForType(Func<Object>, Type).)

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