Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


JsonReaderOptions.CommentHandling Property

Definition

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

C#
public System.Text.Json.JsonCommentHandling CommentHandling { get; set; }

Property Value

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

Exceptions

The property is being set to a value that is not a member of the JsonCommentHandling enumeration.

Remarks

By default, the reader throws a JsonException if it encounters a comment.

Applies to

Termék Verziók
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)