Share via


Utf8JsonReader.GetComment Método

Definición

Analiza el valor del token JSON actual del origen como comentario, transcodificado como String.

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

Devoluciones

String

Comentario que representa el valor del token JSON actual.

Excepciones

El token JSON no es un comentario.

Comentarios

Esto solo es aplicable cuando el lector se construye con la Allow opción . De lo contrario, TokenType nunca será Comment.

Se aplica a

Consulte también