StreamedFileDataRequest 類別

定義

表示循序存取輸出資料流程,指出呼叫CreateStreamedFileAsyncReplaceWithStreamedFileAsync所建立之StorageFile資料流程的要求。

public ref class StreamedFileDataRequest sealed : IClosable, IStreamedFileDataRequest, IOutputStream
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class StreamedFileDataRequest final : IClosable, IStreamedFileDataRequest, IOutputStream
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class StreamedFileDataRequest : System.IDisposable, IStreamedFileDataRequest, IOutputStream
Public NotInheritable Class StreamedFileDataRequest
Implements IDisposable, IOutputStream, IStreamedFileDataRequest
繼承
Object Platform::Object IInspectable StreamedFileDataRequest
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

當存取StorageFile所代表的資料流程時,此物件會傳遞至應用程式的StreamedFileDataRequestedHandler函式。 如果您使用CreateStreamedFileAsyncReplaceWithStreamedFileAsync來取得代表資料流程的StorageFile,請定義StreamedFileDataRequestedHandler函式。

方法

Close()

釋放目前資料流程所公開的系統資源,指出資料要求已完成。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

FailAndClose(StreamedFileFailureMode)

表示無法串流處理資料,並釋放目前資料流程所公開的系統資源,指出資料要求已完成。

FlushAsync()

排清目前資料流程中的資料。

WriteAsync(IBuffer)

將資料從緩衝區寫入至目前的資料流程。

適用於