ModelMetadataTypeAttribute<T> クラス

定義

この属性は、データ モデル クラスに関連付けるメタデータ クラスを指定します。

public class ModelMetadataTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ModelMetadataTypeAttribute
type ModelMetadataTypeAttribute<'T> = class
    inherit ModelMetadataTypeAttribute
Public Class ModelMetadataTypeAttribute(Of T)
Inherits ModelMetadataTypeAttribute

型パラメーター

T

データ モデル クラスに関連付けられているメタデータ クラスの型。

継承
ModelMetadataTypeAttribute<T>

注釈

これは、 の派生ジェネリックバリアント ModelMetadataTypeAttribute であり、1 つのターゲットで複数のインスタンスを許可しません。 ターゲットには、いずれかの属性のインスタンスが 1 つだけ指定されていることを確認します。

コンストラクター

ModelMetadataTypeAttribute<T>()

ModelMetadataTypeAttribute クラスの新しいインスタンスを初期化します。

プロパティ

MetadataType

データ モデル クラスに関連付けられているメタデータ クラスの型を取得します。

(継承元 ModelMetadataTypeAttribute)

適用対象