JsonDocumentOptions.CommentHandling Propriété

Définition

Obtient ou définit une valeur qui détermine comment JsonDocument gère les 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é

JsonCommentHandling

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

Exceptions

L’énum de gestion des commentaires est définie avec une valeur qui n’est pas prise en charge (ou qui n’est pas dans la plage d’énums JsonCommentHandling).

Remarques

Par défaut, une JsonException exception est levée si un commentaire est rencontré.

S’applique à