Share via


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.DefaultContractResolver
MobileServiceContractResolver

Constructors

MobileServiceContractResolver()

Methods

CreateMemberValueProvider(MemberInfo)

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

CreateObjectContract(Type)

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

CreateProperties(Type, MemberSerialization)

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

CreateProperty(MemberInfo, MemberSerialization)

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

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)

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)

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

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)

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

Applies to