共用方式為


StorageFile.OpenAsync 方法

定義

多載

OpenAsync(FileAccessMode, StorageOpenOptions)

開啟具有指定檔案上指定選項的隨機存取資料流程。

OpenAsync(FileAccessMode)

開啟具有指定檔案上指定選項的隨機存取資料流程。

OpenAsync(FileAccessMode, StorageOpenOptions)

開啟具有指定檔案上指定選項的隨機存取資料流程。

public:
 virtual IAsyncOperation<IRandomAccessStream ^> ^ OpenAsync(FileAccessMode accessMode, StorageOpenOptions options) = OpenAsync;
/// [Windows.Foundation.Metadata.Overload("OpenWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode const& accessMode, StorageOpenOptions const& options);
[Windows.Foundation.Metadata.Overload("OpenWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode accessMode, StorageOpenOptions options);
function openAsync(accessMode, options)
Public Function OpenAsync (accessMode As FileAccessMode, options As StorageOpenOptions) As IAsyncOperation(Of IRandomAccessStream)

參數

accessMode
FileAccessMode

其中一個列舉值,指定允許的存取類型。

options
StorageOpenOptions

列舉值的位元組合,指定開啟資料流程的選項。

傳回

當這個方法完成時,它會傳回 IRandomAccessStream ,其中包含要求的隨機存取資料流程。

實作

屬性

另請參閱

適用於

OpenAsync(FileAccessMode)

開啟具有指定檔案上指定選項的隨機存取資料流程。

public:
 virtual IAsyncOperation<IRandomAccessStream ^> ^ OpenAsync(FileAccessMode accessMode) = OpenAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode const& accessMode);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode accessMode);
function openAsync(accessMode)
Public Function OpenAsync (accessMode As FileAccessMode) As IAsyncOperation(Of IRandomAccessStream)

參數

accessMode
FileAccessMode

其中一個列舉值,指定允許的存取類型。

傳回

當這個方法完成時,它會傳回 IRandomAccessStream ,其中包含要求的隨機存取資料流程。

實作

屬性

另請參閱

適用於