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)
Syntax
'Declaration
Public Interface IMetadataAware
'Usage
Dim instance As IMetadataAware
public interface IMetadataAware
public interface class IMetadataAware
public interface IMetadataAware
The IMetadataAware type exposes the following members.
Methods
Name | Description | |
---|---|---|
OnMetadataCreated | When implemented in a class, provides metadata to the model metadata creation process. |
Top
Remarks
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.