Share via


ServiceContractResolver Class

 

Represents the default IContractResolver used by JsonMediaTypeFormatter but with the addition of supporting camel cased serialization. It uses the formatter's IRequiredMemberSelector to select required members and recognizes the SerializableAttribute type annotation.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Serialization
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.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 ServiceContractResolver : JsonContractResolver
public ref class ServiceContractResolver : JsonContractResolver
type ServiceContractResolver = 
    class
        inherit JsonContractResolver
    end
Public Class ServiceContractResolver
    Inherits JsonContractResolver

Constructors

Name Description
System_CAPS_pubmethod ServiceContractResolver(MediaTypeFormatter)

Initializes a new instance of the ServiceContractResolver with a given formatter to use for resolving required members.

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)

(Inherited from DefaultContractResolver.)

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_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)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethod ResolvePropertyName(String)

(Overrides DefaultContractResolver.ResolvePropertyName(String).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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