JsonSerializable.SaveTo Method

Definition

Overloads

SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure DocumentDB database service.

SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure DocumentDB database service.

SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure DocumentDB database service.

public void SaveTo (System.IO.Stream stream, Microsoft.Azure.Documents.SerializationFormattingPolicy formattingPolicy = Microsoft.Azure.Documents.SerializationFormattingPolicy.None);
Parameters
stream
Stream

Saves the object to this output stream.

formattingPolicy
SerializationFormattingPolicy

Uses an optional serialization formatting policy when saving the object. The default policy is set to None.

SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure DocumentDB database service.

public void SaveTo (System.IO.Stream stream, Microsoft.Azure.Documents.SerializationFormattingPolicy formattingPolicy, Newtonsoft.Json.JsonSerializerSettings settings);
Parameters
stream
Stream

Saves the object to this output stream.

formattingPolicy
SerializationFormattingPolicy

Uses a custom serialization formatting policy when saving the object.

settings
Newtonsoft.Json.JsonSerializerSettings

The serializer settings to use.