JsonMetadataServices.CreateObjectInfo<T> メソッド

定義

複合クラスまたは構造体のメタデータを作成します。

public:
generic <typename T>
 static System::Text::Json::Serialization::Metadata::JsonTypeInfo<T> ^ CreateObjectInfo(System::Text::Json::JsonSerializerOptions ^ options, System::Text::Json::Serialization::Metadata::JsonObjectInfoValues<T> ^ objectInfo);
public static System.Text.Json.Serialization.Metadata.JsonTypeInfo<T> CreateObjectInfo<T>(System.Text.Json.JsonSerializerOptions options, System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<T> objectInfo);
static member CreateObjectInfo : System.Text.Json.JsonSerializerOptions * System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<'T> -> System.Text.Json.Serialization.Metadata.JsonTypeInfo<'T>
Public Shared Function CreateObjectInfo(Of T) (options As JsonSerializerOptions, objectInfo As JsonObjectInfoValues(Of T)) As JsonTypeInfo(Of T)

型パラメーター

T

クラスまたは構造体の型。

パラメーター

options
JsonSerializerOptions

シリアル化と逆シリアル化に使用する JsonSerializerOptions

objectInfo
JsonObjectInfoValues<T>

コンストラクター、プロパティ、およびフィールドを使用して、オブジェクト型に関するシリアル化メタデータを提供します。

返品

クラスまたは構造体を表す JsonTypeInfo<T> インスタンス。

例外

options または objectInfonull

注釈

この API は System.Text.Json ソース ジェネレーターの出力で使用されるため、直接呼び出すべきではありません。

適用対象