다음을 통해 공유


IVisualizerObjectProvider2.Serialize(Object, Stream) Method

Definition

Helper method which makes it easier to write serialization code.

If the target app supports Binary Serialization it serializes the object into the stream with the help of the BinaryFormatter class. If that is not supported, which is the case in newer versions of .NET, it defaults to serialize the object in JSON format.

public:
 void Serialize(System::Object ^ o, System::IO::Stream ^ stream);
public void Serialize (object o, System.IO.Stream stream);
abstract member Serialize : obj * System.IO.Stream -> unit
Public Sub Serialize (o As Object, stream As Stream)

Parameters

o
Object

The object to be serialized

stream
Stream

The stream into which to serialize the object

Applies to