IVisualizerObjectProvider3.DeserializeFromJson<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.
Deserializes the data in Newtonsoft.Json format from the specified stream into an object of a specific type.
public T? DeserializeFromJson<T> (System.IO.Stream serializationStream, object? serializer = default);
abstract member DeserializeFromJson : System.IO.Stream * obj -> 'T
Public Function DeserializeFromJson(Of T) (serializationStream As Stream, Optional serializer As Object = Nothing) As T
Type Parameters
- T
Parameters
- serializationStream
- Stream
The stream where the data will be extracted from.
- serializer
- Object
[Optional] Argument of type Newtonsoft.Json.JsonSerializer that specifies how the object will be encoded as JSON. If not specified, the object will be deserialized with the default NewtonSoft JSON Serializer.
Returns
An object of the specified dataType initialized with the data contained in the stream.
Exceptions
If the data in the stream is not formatted as valid JSON.