JsonDocumentOptions.CommentHandling Property


Gets or sets a value that determines how the JsonDocument handles comments when reading through the JSON data.

 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

Property Value

One of the enumeration values that indicates how comments are handled.


The comment handling enum is set to a value that is not supported (or not within the JsonCommentHandling enum range).


By default, a JsonException is thrown if a comment is encountered.

Applies to