JsonReaderOptions.CommentHandling 属性

定义

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

适用于