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)

Inheritance Hierarchy

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

Syntax

public class JsonContractResolver : DefaultContractResolver
public ref class JsonContractResolver : DefaultContractResolver
type JsonContractResolver = 
    class
        inherit DefaultContractResolver
    end
Public Class JsonContractResolver
    Inherits DefaultContractResolver

Constructors

Name Description
System_CAPS_pubmethod JsonContractResolver(MediaTypeFormatter)

Initializes a new instance of the JsonContractResolver class.

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)

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

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)

(Inherited from DefaultContractResolver.)

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

System.Net.Http.Formatting Namespace

Return to top