MobileServiceContractResolver MobileServiceContractResolver MobileServiceContractResolver Class

Definition

An Newtonsoft.Json.Serialization.IContractResolver implementation that is used with the MobileServiceClient.

public class MobileServiceContractResolver : Newtonsoft.Json.Serialization.DefaultContractResolver
type MobileServiceContractResolver = class
    inherit DefaultContractResolver
Public Class MobileServiceContractResolver
Inherits DefaultContractResolver
Inheritance
Newtonsoft.Json.Serialization.DefaultContractResolverNewtonsoft.Json.Serialization.DefaultContractResolverNewtonsoft.Json.Serialization.DefaultContractResolver
MobileServiceContractResolverMobileServiceContractResolverMobileServiceContractResolver

Constructors

MobileServiceContractResolver() MobileServiceContractResolver() MobileServiceContractResolver()

Methods

CreateMemberValueProvider(MemberInfo) CreateMemberValueProvider(MemberInfo) CreateMemberValueProvider(MemberInfo)

Creates the Newtonsoft.Json.Serialization.IValueProvider used by the serializer to get and set values from a member.

CreateObjectContract(Type) CreateObjectContract(Type) CreateObjectContract(Type)

Creates a Newtonsoft.Json.Serialization.JsonObjectContract that provides information about how the given type should be serialized to JSON.

CreateProperties(Type, MemberSerialization) CreateProperties(Type, MemberSerialization) CreateProperties(Type, MemberSerialization)

Creates a collection of Newtonsoft.Json.Serialization.JsonProperty instances for the members of a given type.

CreateProperty(MemberInfo, MemberSerialization) CreateProperty(MemberInfo, MemberSerialization) CreateProperty(MemberInfo, MemberSerialization)

Creates a Newtonsoft.Json.Serialization.JsonProperty for a given MemberInfo instance.

ResolveIdProperty(Type) ResolveIdProperty(Type) ResolveIdProperty(Type)

Returns the id Newtonsoft.Json.Serialization.JsonProperty for the given type. The Newtonsoft.Json.Serialization.JsonProperty can be used to get/set the id value of an instance of the given type.

ResolveProperty(MemberInfo) ResolveProperty(MemberInfo) ResolveProperty(MemberInfo)

Returns the Newtonsoft.Json.Serialization.JsonProperty for the given MemberInfo instance. The Newtonsoft.Json.Serialization.JsonProperty can be used to get information about how the MemberInfo should be serialized.

ResolvePropertyName(String) ResolvePropertyName(String) ResolvePropertyName(String)

Returns the name that should be serialized into JSON for a given property name.

ResolveSystemProperties(Type) ResolveSystemProperties(Type) ResolveSystemProperties(Type)

Returns the system properties as a comma seperated list for a given type. Returns null if the type does not support system properties.

ResolveTableName(Type) ResolveTableName(Type) ResolveTableName(Type)

Returns a table name for a type and accounts for table renaming via the DataContractAttribute, DataTableAttribute and/or the JsonObjectAttribute.

Applies to