IVisualizerObjectProvider.TransferData(Stream) 方法

定义

将数据双向传输到 VisualizerObjectSource 上的 TransferData 方法

public:
 System::IO::Stream ^ TransferData(System::IO::Stream ^ outgoingData);
public System.IO.Stream TransferData (System.IO.Stream outgoingData);
abstract member TransferData : System.IO.Stream -> System.IO.Stream
Public Function TransferData (outgoingData As Stream) As Stream

参数

outgoingData
Stream

要传输回调试对象端的数据流。

返回

返回由 方法填充的 TransferData(Object, Stream, Stream) 数据流。 调试器端与调试对象端之间没有基于流的双向通信, (对象 source.)

示例

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

注解

将任意数据传输到 , VisualizerObjectSource 并允许它返回任何任意数据。

适用于