JsonSerializerContext(JsonSerializerOptions) コンストラクター

定義

JsonSerializerContextのインスタンスを作成し、指定されたJsonSerializerOptionsにバインドします。

protected:
 JsonSerializerContext(System::Text::Json::JsonSerializerOptions ^ options);
protected JsonSerializerContext(System.Text.Json.JsonSerializerOptions? options);
new System.Text.Json.Serialization.JsonSerializerContext : System.Text.Json.JsonSerializerOptions -> System.Text.Json.Serialization.JsonSerializerContext
Protected Sub New (options As JsonSerializerOptions)

パラメーター

options
JsonSerializerOptions

コンテキスト インスタンスの実行時に指定されたオプション。

注釈

インスタンス オプションが渡されない場合、 AddContext<TContext>() を使用してコンテキストがバインドされるまで、または新しいオプション インスタンスが作成されてバインドされる Options が呼び出されるまで、オプションは設定されません。

適用対象