ModelMetadataTypeAttribute<T> クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この属性は、データ モデル クラスに関連付けるメタデータ クラスを指定します。
public class ModelMetadataTypeAttribute<T> : Microsoft.AspNetCore.Mvc.ModelMetadataTypeAttribute
type ModelMetadataTypeAttribute<'T> = class
inherit ModelMetadataTypeAttribute
Public Class ModelMetadataTypeAttribute(Of T)
Inherits ModelMetadataTypeAttribute
型パラメーター
- T
データ モデル クラスに関連付けられているメタデータ クラスの型。
- 継承
注釈
これは、 の派生ジェネリックバリアント ModelMetadataTypeAttribute であり、1 つのターゲットで複数のインスタンスを許可しません。 ターゲットには、いずれかの属性のインスタンスが 1 つだけ指定されていることを確認します。
コンストラクター
ModelMetadataTypeAttribute<T>() |
ModelMetadataTypeAttribute クラスの新しいインスタンスを初期化します。 |
プロパティ
MetadataType |
データ モデル クラスに関連付けられているメタデータ クラスの型を取得します。 (継承元 ModelMetadataTypeAttribute) |