JsonDocumentOptions.CommentHandling Właściwość

Definicja

Pobiera lub ustawia wartość określającą sposób JsonDocument obsługi komentarzy podczas odczytywania danych 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

Wartość właściwości

Jedna z wartości wyliczenia wskazująca sposób obsługi komentarzy.

Wyjątki

Wyliczenie obsługi komentarzy jest ustawione na wartość, która nie jest obsługiwana (lub nie mieści się w JsonCommentHandling zakresie wyliczenia).

Uwagi

Domyślnie element jest zgłaszany w JsonException przypadku napotkania komentarza.

Dotyczy