JsonConverter<T>.Read(Utf8JsonReader, Type, JsonSerializerOptions) Método

Definição

Lê e converte o JSON para o tipo T.Reads and converts the JSON to type 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

Parâmetros

reader
Utf8JsonReader

O leitor.The reader.

typeToConvert
Type

O tipo a ser convertido.The type to convert.

options
JsonSerializerOptions

Um objeto que especifica as opções de serialização a serem usadas.An object that specifies serialization options to use.

Retornos

T

O valor convertido.The converted value.

Comentários

Para obter mais informações, consulte como escrever conversores personalizados para SERIALIZAÇÃO JSON.For more information, see How to write custom converters for JSON serialization.

Aplica-se a