VisualizerObjectSource.Serialize(Stream, Object) 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.
Helper method which makes it easier to write serialization code.
This will use the BinaryFormatter when the target app process supports it, or JSON in cases where it will not. By default, ASP.NET Core 5.0+ disables the binary formatter.
public:
static void Serialize(System::IO::Stream ^ serializationStream, System::Object ^ target);
public static void Serialize (System.IO.Stream serializationStream, object target);
static member Serialize : System.IO.Stream * obj -> unit
Public Shared Sub Serialize (serializationStream As Stream, target As Object)
Parameters
- serializationStream
- Stream
The stream into which to serialize the object
- target
- Object
The object to be serialized
Remarks
Serializes a data object into a stream. Use this method when you need to construct a stream for outgoing data, which is data that you need to transfer to the debugger side. This method is used as a helper method by the default implementation of GetData. You can use this as a helper method if you override GetData or GetObject.