CosmosSerializer.FromStream<T>(Stream) 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 a Stream of JSON to an object. The implementation is responsible for Disposing of the stream, including when an exception is thrown, to avoid memory leaks.
public abstract T FromStream<T> (System.IO.Stream stream);
abstract member FromStream : System.IO.Stream -> 'T
Public MustOverride Function FromStream(Of T) (stream As Stream) As T
Type Parameters
- T
Any type passed to Container.
Parameters
- stream
- Stream
The Stream response containing JSON from Cosmos DB.
Returns
The object deserialized from the stream.
Applies to
Azure SDK for .NET
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по