CreateReplacementObject Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

VisualizerObjectSource.CreateReplacementObject Method 

Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in microsoft.visualstudio.debuggervisualizers.dll)

public virtual Object CreateReplacementObject (
	Object target,
	Stream incomingData
)
public Object CreateReplacementObject (
	Object target, 
	Stream incomingData
)
public function CreateReplacementObject (
	target : Object, 
	incomingData : Stream
) : Object

Parameters

target

Object being visualized.

incomingData

Incoming data stream.

Return Value

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.

Show:
© 2016 Microsoft