JsonReaderOptions.CommentHandling Propriété

Définition

Obtient ou définit une valeur qui détermine comment les Utf8JsonReader handles commentaires lors de la lecture des données 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

Valeur de propriété

Une des valeurs d’énumération qui indique comment les commentaires sont gérés.

Exceptions

La propriété est définie sur une valeur qui n’est pas membre de l’énumération JsonCommentHandling .

Remarques

Par défaut, le lecteur lève un JsonException commentaire s’il rencontre un commentaire.

S’applique à