Utf8JsonReader.GetComment Método

Definição

Analisa o valor do token JSON atual da origem como um comentário, transcodificando-o como um String.

public:
 System::String ^ GetComment();
public string GetComment ();
member this.GetComment : unit -> string
Public Function GetComment () As String

Retornos

String

O comentário que representa o valor do token JSON atual.

Exceções

O token JSON não é um comentário.

Comentários

Isso só é aplicável quando o leitor é construído usando a opção Allow . Caso contrário, o TokenType nunca será Comment.

Aplica-se a

Confira também