JsonConverter<T>.Write(Utf8JsonWriter, T, JsonSerializerOptions) 메서드

정의

지정된 값을 JSON으로 씁니다.

public:
 abstract void Write(System::Text::Json::Utf8JsonWriter ^ writer, T value, System::Text::Json::JsonSerializerOptions ^ options);
public abstract void Write (System.Text.Json.Utf8JsonWriter writer, T value, System.Text.Json.JsonSerializerOptions options);
abstract member Write : System.Text.Json.Utf8JsonWriter * 'T * System.Text.Json.JsonSerializerOptions -> unit
Public MustOverride Sub Write (writer As Utf8JsonWriter, value As T, options As JsonSerializerOptions)

매개 변수

writer
Utf8JsonWriter

쓰려는 대상 작성기입니다.

value
T

JSON으로 변환할 값입니다.

options
JsonSerializerOptions

사용할 직렬화 옵션을 지정하는 개체입니다.

설명

변환기는 예외를 throw할 수 있지만 JSON을 만들 수 없는 경우 throw JsonException 해야 합니다.

자세한 내용은 JSON serialization에 대한 사용자 지정 변환기를 작성하는 방법을 참조하세요.

적용 대상