Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMetadataAware Interface

 

Provides an interface for exposing attributes to the AssociatedMetadataProvider class.

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

public interface IMetadataAware

NameDescription
System_CAPS_pubmethodOnMetadataCreated(ModelMetadata)

When implemented in a class, provides metadata to the model metadata creation process.

This interface can be implemented by an attribute class so that the attribute can add metadata to the model metadata creation process without writing a custom metadata provider. This interface is consumed by the AssociatedMetadataProvider class, so this behavior is inherited by all classes which derive from it, such as the DataAnnotationsModelMetadataProvider class.

Return to top
Show:
© 2018 Microsoft