Udostępnij za pośrednictwem


JsonSerializable.LoadFrom Method

Definition

Overloads

LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

LoadFrom<T>(Stream)

Loads the object from the specified stream in the Azure Cosmos DB service.

LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

public virtual void LoadFrom (Newtonsoft.Json.JsonReader reader);
abstract member LoadFrom : Newtonsoft.Json.JsonReader -> unit
override this.LoadFrom : Newtonsoft.Json.JsonReader -> unit
Public Overridable Sub LoadFrom (reader As JsonReader)

Parameters

reader
Newtonsoft.Json.JsonReader

Loads the object from this JSON reader.

Applies to

LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

public virtual void LoadFrom (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.JsonSerializerSettings serializerSettings);
abstract member LoadFrom : Newtonsoft.Json.JsonReader * Newtonsoft.Json.JsonSerializerSettings -> unit
override this.LoadFrom : Newtonsoft.Json.JsonReader * Newtonsoft.Json.JsonSerializerSettings -> unit
Public Overridable Sub LoadFrom (reader As JsonReader, serializerSettings As JsonSerializerSettings)

Parameters

reader
Newtonsoft.Json.JsonReader

Loads the object from this JSON reader.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The JsonSerializerSettings to be used.

Applies to

LoadFrom<T>(Stream)

Loads the object from the specified stream in the Azure Cosmos DB service.

public static T LoadFrom<T> (System.IO.Stream stream) where T : Microsoft.Azure.Documents.JsonSerializable, new();
static member LoadFrom : System.IO.Stream -> 'T (requires 'T :> Microsoft.Azure.Documents.JsonSerializable and 'T : (new : unit -> 'T))
Public Shared Function LoadFrom(Of T As {JsonSerializableNew}) (stream As Stream) As T

Type Parameters

T

The type of the returning object.

Parameters

stream
Stream

The stream to load from.

Returns

T

The object loaded from the specified stream.

Applies to