共用方式為


UsbBulkOutPipe.OutputStream 屬性

定義

取得輸出資料流程,應用程式可將資料寫入至端點。

public:
 property IOutputStream ^ OutputStream { IOutputStream ^ get(); };
IOutputStream OutputStream();
public IOutputStream OutputStream { get; }
var iOutputStream = usbBulkOutPipe.outputStream;
Public ReadOnly Property OutputStream As IOutputStream

屬性值

包含傳輸資料的輸出資料流程。

備註

若要寫入資料,請先使用 OutputStream 屬性從管道取得輸出資料流程,然後使用 DataWriter 物件來寫入實際的緩衝區。

Windows::Storage::Streams::Buffer^ buffer = ref new Windows::Storage::Streams::Buffer(TRANSFER_SIZE);  

buffer->Length = TRANSFER_SIZE;  

auto stream = DeviceList::Current->Fx2Device->Configuration->UsbInterfaces->GetAt(0)->BulkOutPipes->GetAt(0)->OutputStream;  

Windows::Storage::Streams::DataWriter^ writer = ref new Windows::Storage::Streams::DataWriter(stream);  

writer->WriteBuffer(buffer);  


});  

適用於