JsonDocumentOptions.CommentHandling 屬性

定義

取得或設定值,判斷 JsonDocument 如何在讀取 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 列舉範圍內)。

備註

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

適用於