JsonDocumentOptions.CommentHandling Property

Definition

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

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

Property Value

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

Exceptions

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

Remarks

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

Applies to