Utf8JsonReader.GetString Método
Definição
Lê o próximo valor do token JSON da fonte, sem escape e transcodificado como uma cadeia de caracteres.Reads the next JSON token value from the source, unescaped, and transcoded as a string.
public:
System::String ^ GetString();
public string? GetString ();
public string GetString ();
member this.GetString : unit -> string
Public Function GetString () As String
Retornos
O valor do token analisado como uma cadeia de caracteres ou, se TokenType for Null, null.The token value parsed to a string, or null if TokenType is Null.
Exceções
O valor do token JSON não é uma cadeia de caracteres (ou seja, não é um String, PropertyName nem Null).The JSON token value isn't a string (that is, not a String, PropertyName, or Null).
- ou --or-
A cadeia de caracteres JSON contém bytes de UTF-8 ou alternativas de UTF-16 inválidos.The JSON string contains invalid UTF-8 bytes or invalid UTF-16 surrogates.
Comentários
Retorna null quando TokenType é JsonTokenType.Null .Returns null when TokenType is JsonTokenType.Null.