IVisualizerObjectProvider.TransferObject Method
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)
Syntax
'Declaration
Function TransferObject ( _
outgoingObject As Object _
) As Object
Object TransferObject(
Object outgoingObject
)
Object^ TransferObject(
Object^ outgoingObject
)
abstract TransferObject :
outgoingObject:Object -> Object
function TransferObject(
outgoingObject : Object
) : Object
Parameters
outgoingObject
Type: System.ObjectAn object that is to be transferred back to the debuggee side.
Return Value
Type: System.Object
The result of deserializing the return value of TransferData.
Remarks
Transfers a data object back to the debuggee. Call this method after replacing the object that is being visualized. Call this method to transfer some information or call a command on the VisualizerObjectSource. This method merely wraps TransferData with calls to serialization and deserialization helper methods.
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
// Get a string from the debuggee side and display it in a message box.
String myString = objectProvider.GetObject().ToString();
MessageBox.Show(myString);
// Modify the string and send it back to the debuggee side.
String myNewString = myString.ToUpper();
objectProvider.TransferObject(myNewString);
}
// Other DebuggerSide methods ommitted for clarity.
}
.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.