共用方式為


IStorageFile.OpenAsync(FileAccessMode) 方法

定義

開啟檔案上的隨機存取資料流程。

public:
 IAsyncOperation<IRandomAccessStream ^> ^ OpenAsync(FileAccessMode accessMode);
/// [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) (隨機存取資料流程。

屬性

適用於

另請參閱