JsonDocumentOptions.CommentHandling Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit une valeur qui détermine comment les JsonDocument 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
L’énumération de gestion des commentaires est définie sur une valeur qui n’est pas prise en charge (ou non dans la JsonCommentHandling plage d’énumération).
Remarques
Par défaut, une JsonException exception est levée si un commentaire est rencontré.