Share via


TableContractResolver Class

 

This class implements an IContractResolver to provide support for deserialization of the Delta<TEntityType> type using JSON.NET.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Serialization
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Tables (in Microsoft.WindowsAzure.Mobile.Service.Tables.dll)

Inheritance Hierarchy

System.Object
  Newtonsoft.Json.Serialization.DefaultContractResolver
    System.Net.Http.Formatting.JsonContractResolver
      Microsoft.WindowsAzure.Mobile.Service.Serialization.ServiceContractResolver
        Microsoft.WindowsAzure.Mobile.Service.Serialization.TableContractResolver

Syntax

public class TableContractResolver : ServiceContractResolver
public ref class TableContractResolver : ServiceContractResolver
type TableContractResolver = 
    class
        inherit ServiceContractResolver
    end
Public Class TableContractResolver
    Inherits ServiceContractResolver

Constructors

Name Description
System_CAPS_pubmethod TableContractResolver(MediaTypeFormatter)

Initializes a new instance of the TableContractResolver class with a given formatter.

Properties

Name Description
System_CAPS_pubproperty DefaultMembersSearchFlags

(Inherited from DefaultContractResolver.)

System_CAPS_pubproperty DynamicCodeGeneration

(Inherited from DefaultContractResolver.)

System_CAPS_pubproperty IgnoreSerializableAttribute

(Inherited from DefaultContractResolver.)

System_CAPS_pubproperty IgnoreSerializableInterface

(Inherited from DefaultContractResolver.)

System_CAPS_pubproperty SerializeCompilerGeneratedMembers

(Inherited from DefaultContractResolver.)

Methods

Name Description
System_CAPS_protmethod CreateArrayContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateConstructorParameters(ConstructorInfo, JsonPropertyCollection)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateContract(Type)

Gets the contract for a given type. The type Delta<TEntityType> is treated specially whereas all other types are handled by the base class.(Overrides DefaultContractResolver.CreateContract(Type).)

System_CAPS_protmethod CreateDictionaryContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateDynamicContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateISerializableContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateLinqContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateMemberValueProvider(MemberInfo)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateObjectContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreatePrimitiveContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateProperties(Type, MemberSerialization)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateProperty(MemberInfo, MemberSerialization)

(Inherited from JsonContractResolver.)

System_CAPS_protmethod CreatePropertyFromConstructorParameter(JsonProperty, ParameterInfo)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod CreateStringContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_protmethod GetDeltaContract(Type)

Creates a contract for a type of Delta<TEntityType>.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetResolvedPropertyName(String)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod GetSerializableMembers(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ResolveContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod ResolveContractConverter(Type)

(Overrides DefaultContractResolver.ResolveContractConverter(Type).)

System_CAPS_protmethod ResolvePropertyName(String)

(Inherited from ServiceContractResolver.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

The contract created for Delta<TEntityType> will deserialize properties using the types and property names of the underlying type. The JsonProperty instances are copied from the underlying type's JsonContract and customized to work with a dynamic object. In particular, a custom IValueProvider is used to get and set values using the contract of DynamicObject, which Delta<TEntityType> inherits from.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service.Serialization Namespace

Return to top