JsonDocumentOptions.CommentHandling 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值确定 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 。