DataAnnotationsModelMetadataProvider Class

 

Implements the default model metadata provider.

Namespace:   System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

System::Object
  System.Web.Http.Metadata::ModelMetadataProvider
    System.Web.Http.Metadata.Providers::AssociatedMetadataProvider<TModelMetadata>
      System.Web.Http.Metadata.Providers::DataAnnotationsModelMetadataProvider

public ref class DataAnnotationsModelMetadataProvider : AssociatedMetadataProvider<CachedDataAnnotationsModelMetadata^>

NameDescription
System_CAPS_pubmethodDataAnnotationsModelMetadataProvider()

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

NameDescription
System_CAPS_protmethodCreateMetadataFromPrototype(CachedDataAnnotationsModelMetadata^, Func<Object^>^)

Creates the metadata from prototype for the specified property.(Overrides AssociatedMetadataProvider<TModelMetadata>::CreateMetadataFromPrototype(TModelMetadata, Func<Object^>^).)

System_CAPS_protmethodCreateMetadataPrototype(IEnumerable<Attribute^>^, Type^, Type^, String^)
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMetadataForProperties(Object^, Type^)

Retrieves a list of properties for the model.(Inherited from AssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_pubmethodGetMetadataForProperty(Func<Object^>^, Type^, String^)

Retrieves the metadata for the specified property using the container type and property name.(Inherited from AssociatedMetadataProvider<TModelMetadata>.)

System_CAPS_pubmethodGetMetadataForType(Func<Object^>^, Type^)

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

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(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.

Return to top
Show: