Utf8JsonReader.GetComment 方法

定义

将源中的当前 JSON 令牌值分析为注释,并将其转码为一个 String

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

返回

表示当前 JSON 令牌值的注释。

例外

JSON 令牌不是注释。

注解

仅当使用 Allow 此选项构造读取器时,此选项才适用。 否则,TokenType永远不会。Comment

适用于

另请参阅