共用方式為


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 ,並允許它傳回任何任意數據。

適用於