VisualizerObjectSource.CreateReplacementObject Method
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Public Overridable Function CreateReplacementObject ( _
target As Object, _
incomingData As Stream _
) As Object
public virtual Object CreateReplacementObject(
Object target,
Stream incomingData
)
public:
virtual Object^ CreateReplacementObject(
Object^ target,
Stream^ incomingData
)
abstract CreateReplacementObject :
target:Object *
incomingData:Stream -> Object
override CreateReplacementObject :
target:Object *
incomingData:Stream -> Object
public function CreateReplacementObject(
target : Object,
incomingData : Stream
) : Object
Parameters
target
Type: System.ObjectObject being visualized.
incomingData
Type: System.IO.StreamIncoming 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.
Remarks
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.
.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.