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

RotationConverter 类

定义

定义 Rotation 的值。

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

构造函数

RotationConverter()

定义 Rotation 的值。

方法

CanConvert(Type)

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

ReadJson(JsonReader, Type, Object, JsonSerializer)

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

WriteJson(JsonWriter, Object, JsonSerializer)

重写 WriteJson for Rotation 进行序列化。

适用于