你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MobileServiceContractResolver 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一个用于 Newtonsoft.Json.Serialization.IContractResolver 的 MobileServiceClient 实现。
public class MobileServiceContractResolver : Newtonsoft.Json.Serialization.DefaultContractResolver
type MobileServiceContractResolver = class
inherit DefaultContractResolver
Public Class MobileServiceContractResolver
Inherits DefaultContractResolver
- 继承
-
Newtonsoft.Json.Serialization.DefaultContractResolverMobileServiceContractResolver
构造函数
MobileServiceContractResolver() |
一个用于 Newtonsoft.Json.Serialization.IContractResolver 的 MobileServiceClient 实现。 |
方法
CreateMemberValueProvider(MemberInfo) |
创建序列化程序使用的 Newtonsoft.Json.Serialization.IValueProvider 以便从某一成员获取和设置值。 |
CreateObjectContract(Type) |
创建一个 Newtonsoft.Json.Serialization.JsonObjectContract,它提供与给定类型应如何序列化到 JSON 有关的信息。 |
CreateProperties(Type, MemberSerialization) |
为给定类型的成员创建 Newtonsoft.Json.Serialization.JsonProperty 实例的集合。 |
CreateProperty(MemberInfo, MemberSerialization) |
为给定的 Newtonsoft.Json.Serialization.JsonProperty 实例创建 MemberInfo。 |
ResolveIdProperty(Type) |
返回给定类型的 id Newtonsoft.Json.Serialization.JsonProperty。 Newtonsoft.Json.Serialization.JsonProperty 可用于获取/设置给定类型的实例的 id 值。 |
ResolveProperty(MemberInfo) |
返回给定 Newtonsoft.Json.Serialization.JsonProperty 实例的 MemberInfo。 Newtonsoft.Json.Serialization.JsonProperty 可用于获取与对 MemberInfo 执行序列化的方式有关的信息。 |
ResolvePropertyName(String) |
返回对于某一给定属性名称应序列化为 JSON 的名称。 |
ResolveSystemProperties(Type) |
以逗号分隔的列表的形式返回给定类型的系统属性。 如果类型不支持系统属性,则返回 null。 |
ResolveTableName(Type) |
返回某一类型的表名称并且考虑到通过 DataContractAttribute、DataTableAttribute 和/或 JsonObjectAttribute 的表的重命名。 |