JsonReaderOptions.CommentHandling 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值确定 Utf8JsonReader 读取 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 的值。
注解
默认情况下,读取器在遇到批注时引发 JsonException 该读取器。