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) 类型 (随机访问流。

属性

适用于

另请参阅