JsonSerializable.LoadFromWithConstructor Method

Definition

Overloads

LoadFromWithConstructor<T>(Stream, Func<T>)

Deserializes the specified stream using the given constructor in the Azure Cosmos DB service.

LoadFromWithConstructor<T>(Stream, Func<T>, JsonSerializerSettings)

Deserializes the specified stream using the given constructor in the Azure Cosmos DB service.

LoadFromWithConstructor<T>(Stream, Func<T>)

Deserializes the specified stream using the given constructor in the Azure Cosmos DB service.

C#
public static T LoadFromWithConstructor<T>(System.IO.Stream stream, Func<T> constructorFunction);

Type Parameters

T

The type of the object.

Parameters

stream
Stream

The stream to load from.

constructorFunction
Func<T>

The constructor used for the returning object.

Returns

T

The object loaded from the specified stream.

Applies to

Azure SDK for .NET Latest
Produk Versi
Azure SDK for .NET Latest

LoadFromWithConstructor<T>(Stream, Func<T>, JsonSerializerSettings)

Deserializes the specified stream using the given constructor in the Azure Cosmos DB service.

C#
public static T LoadFromWithConstructor<T>(System.IO.Stream stream, Func<T> constructorFunction, Newtonsoft.Json.JsonSerializerSettings settings);

Type Parameters

T

The type of the object.

Parameters

stream
Stream

The stream to load from.

constructorFunction
Func<T>

The constructor used for the returning object.

settings
Newtonsoft.Json.JsonSerializerSettings

The JsonSerializerSettings to be used.

Returns

T

The object loaded from the specified stream.

Applies to

Azure SDK for .NET Latest
Produk Versi
Azure SDK for .NET Latest