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 | |
---|---|---|
TableContractResolver(MediaTypeFormatter) | Initializes a new instance of the TableContractResolver class with a given formatter. |
Properties
Name | Description | |
---|---|---|
DefaultMembersSearchFlags | (Inherited from DefaultContractResolver.) |
|
DynamicCodeGeneration | (Inherited from DefaultContractResolver.) |
|
IgnoreSerializableAttribute | (Inherited from DefaultContractResolver.) |
|
IgnoreSerializableInterface | (Inherited from DefaultContractResolver.) |
|
SerializeCompilerGeneratedMembers | (Inherited from DefaultContractResolver.) |
Methods
Name | Description | |
---|---|---|
CreateArrayContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateConstructorParameters(ConstructorInfo, JsonPropertyCollection) | (Inherited from DefaultContractResolver.) |
|
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).) |
|
CreateDictionaryContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateDynamicContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateISerializableContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateLinqContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateMemberValueProvider(MemberInfo) | (Inherited from DefaultContractResolver.) |
|
CreateObjectContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreatePrimitiveContract(Type) | (Inherited from DefaultContractResolver.) |
|
CreateProperties(Type, MemberSerialization) | (Inherited from DefaultContractResolver.) |
|
CreateProperty(MemberInfo, MemberSerialization) | (Inherited from JsonContractResolver.) |
|
CreatePropertyFromConstructorParameter(JsonProperty, ParameterInfo) | (Inherited from DefaultContractResolver.) |
|
CreateStringContract(Type) | (Inherited from DefaultContractResolver.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetDeltaContract(Type) | Creates a contract for a type of Delta<TEntityType>. |
|
GetHashCode() | (Inherited from Object.) |
|
GetResolvedPropertyName(String) | (Inherited from DefaultContractResolver.) |
|
GetSerializableMembers(Type) | (Inherited from DefaultContractResolver.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ResolveContract(Type) | (Inherited from DefaultContractResolver.) |
|
ResolveContractConverter(Type) | (Overrides DefaultContractResolver.ResolveContractConverter(Type).) |
|
ResolvePropertyName(String) | (Inherited from ServiceContractResolver.) |
|
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