Delen via


IVisualizerObjectProvider.TransferData Method

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

Syntax

'Declaration
Function TransferData ( _
    outgoingData As Stream _
) As Stream
Stream TransferData(
    Stream outgoingData
)
Stream^ TransferData(
    Stream^ outgoingData
)
abstract TransferData : 
        outgoingData:Stream -> Stream
function TransferData(
    outgoingData : Stream
) : Stream

Parameters

  • outgoingData
    Type: System.IO.Stream

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

Return Value

Type: System.IO.Stream
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.)

Remarks

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

Examples

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.
}

.NET Framework Security

See Also

Reference

IVisualizerObjectProvider Interface

Microsoft.VisualStudio.DebuggerVisualizers Namespace