JsonObjectContract Class |
Namespace: Newtonsoft.Json.Serialization
public class JsonObjectContract : JsonContainerContract
The JsonObjectContract type exposes the following members.
Name | Description | |
---|---|---|
JsonObjectContract |
Initializes a new instance of the JsonObjectContract class.
|
Name | Description | |
---|---|---|
Converter |
Gets or sets the default JsonConverter for this contract.
(Inherited from JsonContract.) | |
CreatedType |
Gets or sets the type created during deserialization.
(Inherited from JsonContract.) | |
CreatorParameters |
Gets a collection of JsonProperty instances that define the parameters used with OverrideCreator.
| |
DefaultCreator |
Gets or sets the default creator method used to create the object.
(Inherited from JsonContract.) | |
DefaultCreatorNonPublic |
Gets or sets a value indicating whether the default creator is non-public.
(Inherited from JsonContract.) | |
ExtensionDataGetter |
Gets or sets the extension data getter.
| |
ExtensionDataNameResolver |
Gets or sets the extension data name resolver.
| |
ExtensionDataSetter |
Gets or sets the extension data setter.
| |
ExtensionDataValueType |
Gets or sets the extension data value type.
| |
IsReference |
Gets or sets whether this type contract is serialized as a reference.
(Inherited from JsonContract.) | |
ItemConverter |
Gets or sets the default collection items JsonConverter.
(Inherited from JsonContainerContract.) | |
ItemIsReference |
Gets or sets a value indicating whether the collection items preserve object references.
(Inherited from JsonContainerContract.) | |
ItemNullValueHandling |
Gets or sets how the object's properties with null values are handled during serialization and deserialization.
| |
ItemReferenceLoopHandling |
Gets or sets the collection item reference loop handling.
(Inherited from JsonContainerContract.) | |
ItemRequired |
Gets or sets a value that indicates whether the object's properties are required.
| |
ItemTypeNameHandling |
Gets or sets the collection item type name handling.
(Inherited from JsonContainerContract.) | |
MemberSerialization |
Gets or sets the object member serialization.
| |
OnDeserializedCallbacks |
Gets or sets all methods called immediately after deserialization of the object.
(Inherited from JsonContract.) | |
OnDeserializingCallbacks |
Gets or sets all methods called during deserialization of the object.
(Inherited from JsonContract.) | |
OnErrorCallbacks |
Gets or sets all method called when an error is thrown during the serialization of the object.
(Inherited from JsonContract.) | |
OnSerializedCallbacks |
Gets or sets all methods called after serialization of the object graph.
(Inherited from JsonContract.) | |
OnSerializingCallbacks |
Gets or sets all methods called before serialization of the object.
(Inherited from JsonContract.) | |
OverrideCreator |
Gets or sets the function used to create the object. When set this function will override DefaultCreator.
This function is called with a collection of arguments which are defined by the CreatorParameters collection.
| |
Properties |
Gets the object's properties.
| |
UnderlyingType |
Gets the underlying type for the contract.
(Inherited from JsonContract.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |