VisualizerObjectSource.CreateReplacementObject Method (Object, Stream)

 
Namespace:   Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

public virtual object CreateReplacementObject(
	object target,
	Stream incomingData
)

Parameters

target
Type: System.Object

Object being visualized.

incomingData
Type: System.IO.Stream

Incoming data stream.

Return Value

Type: System.Object

An object, with contents constructed from the incoming data stream, that can replace the target object. This method does not actually replace target but rather provides a replacement object for the debugger to do the actual replacement.

Reads an incoming data stream from the debugger side and uses the data to construct a replacement object for the target object. This method is called when ReplaceData or ReplaceObject is called on the debugger side.

Return to top
Show: