Megosztás a következőn keresztül:


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
Public Sub SaveTo (stream As Stream, Optional formattingPolicy As SerializationFormattingPolicy = 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.

Applies to

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
Public Sub SaveTo (stream As Stream, formattingPolicy As SerializationFormattingPolicy, settings As JsonSerializerSettings)

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