Utf8JsonReader.GetComment 方法

定義

從來源將目前 JSON 權杖值剖析為註解,並已將其轉碼為 String

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

傳回

String

表示目前 JSON 權杖值的註解。

例外狀況

JSON 權杖不是註解。

備註

這只適用于使用 Allow 選項建構讀取器時。 否則, TokenType 永遠不會是 Comment

適用於

另請參閱