Utf8JsonReader.GetComment Method

Definition

Parses the current JSON token value from the source as a comment, transcoded it as a String.

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

Returns

String

The comment that represents the current JSON token value.

Exceptions

The JSON token is not a comment.

Remarks

This is only applicable when the reader is constructed using the Allow option. Otherwise, the TokenType will never be Comment.

Applies to

See also