JsonReaderOptions.CommentHandling 屬性

定義

取得或設定值,判斷 Utf8JsonReader 如何在讀取 JSON 資料時處理註解。

public:
 property System::Text::Json::JsonCommentHandling CommentHandling { System::Text::Json::JsonCommentHandling get(); void set(System::Text::Json::JsonCommentHandling value); };
public System.Text.Json.JsonCommentHandling CommentHandling { get; set; }
member this.CommentHandling : System.Text.Json.JsonCommentHandling with get, set
Public Property CommentHandling As JsonCommentHandling

屬性值

JsonCommentHandling

其中一個列舉值,指出如何處理批註。

例外狀況

此屬性將設定為非 JsonCommentHandling 列舉成員的值。

備註

根據預設,如果讀取器遇到批註,則會擲 JsonException 回 。

適用於