AssociatedMetadataProvider<TModelMetadata> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an abstract class to implement a metadata provider.
public abstract class AssociatedMetadataProvider<TModelMetadata> : System.Web.Http.Metadata.ModelMetadataProvider where TModelMetadata : ModelMetadata
type AssociatedMetadataProvider<'ModelMetadata (requires 'ModelMetadata :> ModelMetadata)> = class
inherit ModelMetadataProvider
Public MustInherit Class AssociatedMetadataProvider(Of TModelMetadata)
Inherits ModelMetadataProvider
Type Parameters
- TModelMetadata
The type of the model metadata.
- Inheritance
- Derived
Constructors
AssociatedMetadataProvider<TModelMetadata>() |
Initializes a new instance of the AssociatedMetadataProvider<TModelMetadata> class. |
Methods
CreateMetadataFromPrototype(TModelMetadata, Func<Object>) |
When overridden in a derived class, creates the model metadata for the property using the specified prototype. |
CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String) |
When overridden in a derived class, creates the model metadata for the property. |
GetMetadataForProperties(Object, Type) |
Retrieves a list of properties for the model. |
GetMetadataForProperty(Func<Object>, Type, String) |
Retrieves the metadata for the specified property using the container type and property name. |
GetMetadataForType(Func<Object>, Type) |
Returns the metadata for the specified property using the type of the model. |