Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

JsonContractResolver Class

 

Represents the default IContractResolver used by JsonMediaTypeFormatter. It uses the formatter's IRequiredMemberSelector to select required members and recognizes the SerializableAttribute type annotation.

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

System.Object
  Newtonsoft.Json.Serialization.DefaultContractResolver
    System.Net.Http.Formatting.JsonContractResolver

public class JsonContractResolver : DefaultContractResolver

NameDescription
System_CAPS_pubmethodJsonContractResolver(MediaTypeFormatter)

Initializes a new instance of the JsonContractResolver class.

NameDescription
System_CAPS_pubpropertyDefaultMembersSearchFlags

(Inherited from DefaultContractResolver.)

System_CAPS_pubpropertyDynamicCodeGeneration

(Inherited from DefaultContractResolver.)

System_CAPS_pubpropertyIgnoreSerializableAttribute

(Inherited from DefaultContractResolver.)

System_CAPS_pubpropertyIgnoreSerializableInterface

(Inherited from DefaultContractResolver.)

System_CAPS_pubpropertySerializeCompilerGeneratedMembers

(Inherited from DefaultContractResolver.)

NameDescription
System_CAPS_protmethodCreateArrayContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateConstructorParameters(ConstructorInfo, JsonPropertyCollection)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateDictionaryContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateDynamicContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateISerializableContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateLinqContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateMemberValueProvider(MemberInfo)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateObjectContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreatePrimitiveContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateProperties(Type, MemberSerialization)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateProperty(MemberInfo, MemberSerialization)

Creates a property on the specified class by using the specified parameters.(Overrides DefaultContractResolver.CreateProperty(MemberInfo, MemberSerialization).)

System_CAPS_protmethodCreatePropertyFromConstructorParameter(JsonProperty, ParameterInfo)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodCreateStringContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetResolvedPropertyName(String)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodGetSerializableMembers(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodResolveContract(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodResolveContractConverter(Type)

(Inherited from DefaultContractResolver.)

System_CAPS_protmethodResolvePropertyName(String)

(Inherited from DefaultContractResolver.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: