你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OnErrorTypeConverter 类

定义

定义 OnErrorType 的值。

public sealed class OnErrorTypeConverter : Newtonsoft.Json.JsonConverter
type OnErrorTypeConverter = class
    inherit JsonConverter
Public NotInheritable Class OnErrorTypeConverter
Inherits JsonConverter
继承
Newtonsoft.Json.JsonConverter
OnErrorTypeConverter

构造函数

OnErrorTypeConverter()

定义 OnErrorType 的值。

方法

CanConvert(Type)

如果 objectType 可由转换器转换为 OnErrorType,则返回 。

ReadJson(JsonReader, Type, Object, JsonSerializer)

重写 ReadJson 并将令牌转换为 OnErrorType。

WriteJson(JsonWriter, Object, JsonSerializer)

重写 OnErrorType 的 WriteJson 进行序列化。

适用于