Del via


CosmosSerializer.ToStream<T>(T) Method

Definition

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.

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 type passed to Container.

Returns

A readable Stream containing JSON of the serialized object.

Applies to