JsonDocumentOptions.CommentHandling Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.