JsonDocumentOptions.CommentHandling 属性

定义

获取或设置一个值,该值确定 JsonDocument 读取 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

属性值

指示如何处理注释的枚举值之一。

例外

注释处理枚举设置为不支持的值(或不在 JsonCommentHandling 枚举范围内)。

注解

默认情况下,如果遇到注释,则会引发 a JsonException

适用于