This topic has not yet been rated - Rate this topic

IVisualizerObjectProvider.TransferData Method 

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

Stream TransferData (
	Stream outgoingData
)
Stream TransferData (
	Stream outgoingData
)
function TransferData (
	outgoingData : Stream
) : Stream

Parameters

outgoingData

A stream of data that is to be transferred back to the debuggee side.

Return Value

Returns the data stream filled in by VisualizerObjectSource's TransferData method. There is no two-way stream-based communication between the debugger side and debuggee side (object source.)

Return Value

Returns the data stream filled in by VisualizerObjectSource's TransferData method. There is no two-way stream-based communication between the debugger side and debuggee side (object source.)

Transfers arbitrary data to the VisualizerObjectSource and allows it to return any arbitrary data.

Transfers arbitrary data to the VisualizerObjectSource and allows it to return any arbitrary data.

public class DebuggerSide : DialogDebuggerVisualizer
{
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      Stream myStream = objectProvider.GetData();
      Stream myNewStream;
      // Here is where you would show the visualizer and get back the modified data stream
      objectProvider.TransferData(myNewStream);
   }
   // Other class methods would be here.
}
public class DebuggerSide : DialogDebuggerVisualizer
{
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      Stream myStream = objectProvider.GetData();
      Stream myNewStream;
      // Here is where you would show the visualizer and get back the modified data stream
      objectProvider.TransferData(myNewStream);
   }
   // Other class methods would be here.
}
Did you find this helpful?
(1500 characters remaining)
Advertisement