ModelMetadataTypeAttribute<T> Class

Definition

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
ModelMetadataTypeAttribute<T>

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)

Applies to