IVisualizerObjectProvider.TransferData(Stream) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將數據雙向傳輸至 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 ,並允許它傳回任何任意數據。