CosmosSerializer.ToStream<T>(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convert the object to a Stream. The caller will take ownership of the stream and ensure it is correctly disposed of. Stream.CanRead must be true https://docs.microsoft.com/dotnet/api/system.io.stream.canread?view=netcore-2.0
public abstract System.IO.Stream ToStream<T> (T input);
abstract member ToStream : 'T -> System.IO.Stream
Public MustOverride Function ToStream(Of T) (input As T) As Stream
Type Parameters
- T
Parameters
- input
- T
Any typed passed to CosmosContainer
Returns
A readable Stream containing JSON of the serialized object
Applies to
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
Azure SDK for .NET