JsonConverter<T>.Read メソッド

定義

JSON を読み取り、T 型に変換します。

public:
 abstract T Read(System::Text::Json::Utf8JsonReader % reader, Type ^ typeToConvert, System::Text::Json::JsonSerializerOptions ^ options);
public abstract T? Read (ref System.Text.Json.Utf8JsonReader reader, Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
public abstract T Read (ref System.Text.Json.Utf8JsonReader reader, Type typeToConvert, System.Text.Json.JsonSerializerOptions options);
abstract member Read : Utf8JsonReader * Type * System.Text.Json.JsonSerializerOptions -> 'T
Public MustOverride Function Read (ByRef reader As Utf8JsonReader, typeToConvert As Type, options As JsonSerializerOptions) As T

パラメーター

reader
Utf8JsonReader

リーダー。

typeToConvert
Type

変換する型。

options
JsonSerializerOptions

使用するシリアル化オプションを指定するオブジェクト。

戻り値

T

変換された値。

注釈

詳細については、「 JSON シリアル化用のカスタム コンバーターを記述する方法」を参照してください。

適用対象