你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MobileServiceIsoDateTimeConverter 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 DateTime 和 DateTimeOffset 对象转换为 UTC 日期时间,并且通过在序列化时调用 ToUniversalTime 和在反序列化时调用 ToLocalTime 来创建一个 ISO 字符串表示形式。
public class MobileServiceIsoDateTimeConverter : Newtonsoft.Json.Converters.IsoDateTimeConverter
type MobileServiceIsoDateTimeConverter = class
inherit IsoDateTimeConverter
Public Class MobileServiceIsoDateTimeConverter
Inherits IsoDateTimeConverter
- 继承
-
Newtonsoft.Json.Converters.IsoDateTimeConverterMobileServiceIsoDateTimeConverter
构造函数
MobileServiceIsoDateTimeConverter() |
创建 MobileServiceIsoDateTimeConverter 的新实例。 |
方法
ReadJson(JsonReader, Type, Object, JsonSerializer) |
读取对象的 JSON 表示形式。 |
WriteJson(JsonWriter, Object, JsonSerializer) |
写入对象的 JSON 表示形式。 |