ModelMetadataTypeAttribute<T> 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.
This attribute specifies the metadata class to associate with a data model class.
public class ModelMetadataTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ModelMetadataTypeAttribute
type ModelMetadataTypeAttribute<'T> = class
inherit ModelMetadataTypeAttribute
Public Class ModelMetadataTypeAttribute(Of T)
Inherits ModelMetadataTypeAttribute
Type Parameters
- T
The type of metadata class that is associated with a data model class.
- Inheritance
Remarks
This is a derived generic variant of the ModelMetadataTypeAttribute which does not allow multiple instances on a single target. Ensure that only one instance of either attribute is provided on the target.
Constructors
ModelMetadataTypeAttribute<T>() |
Initializes a new instance of the ModelMetadataTypeAttribute class. |
Properties
MetadataType |
Gets the type of metadata class that is associated with a data model class. (Inherited from ModelMetadataTypeAttribute) |