VisualizerObjectSource.Serialize Method
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Public Shared Sub Serialize ( _
serializationStream As Stream, _
target As Object _
)
public static void Serialize(
Stream serializationStream,
Object target
)
public:
static void Serialize(
Stream^ serializationStream,
Object^ target
)
static member Serialize :
serializationStream:Stream *
target:Object -> unit
public static function Serialize(
serializationStream : Stream,
target : Object
)
Parameters
serializationStream
Type: System.IO.StreamOutgoing data stream.
target
Type: System.ObjectObject being visualized.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.