JsonSerializable.SaveTo Method

Definition

Overloads

SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

public void SaveTo (System.IO.Stream stream, Microsoft.Azure.Documents.SerializationFormattingPolicy formattingPolicy = Microsoft.Azure.Documents.SerializationFormattingPolicy.None);
member this.SaveTo : System.IO.Stream * Microsoft.Azure.Documents.SerializationFormattingPolicy -> unit

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 Cosmos DB service.

public void SaveTo (System.IO.Stream stream, Microsoft.Azure.Documents.SerializationFormattingPolicy formattingPolicy, Newtonsoft.Json.JsonSerializerSettings settings);
member this.SaveTo : System.IO.Stream * Microsoft.Azure.Documents.SerializationFormattingPolicy * Newtonsoft.Json.JsonSerializerSettings -> unit

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.

Applies to