StorageFile.OpenTransactedWriteAsync 方法

定义

重载

OpenTransactedWriteAsync()

打开可用于事务写入操作的文件的随机访问流。

OpenTransactedWriteAsync(StorageOpenOptions)

使用指定选项打开文件的随机访问流,该流可用于事务处理写入操作。

OpenTransactedWriteAsync()

打开可用于事务写入操作的文件的随机访问流。

public:
 virtual IAsyncOperation<StorageStreamTransaction ^> ^ OpenTransactedWriteAsync() = OpenTransactedWriteAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync();
function openTransactedWriteAsync()
Public Function OpenTransactedWriteAsync () As IAsyncOperation(Of StorageStreamTransaction)

返回

此方法完成后,它将返回 一个 StorageStreamTransaction ,其中包含可用于完成事务的随机访问流和方法。

实现

属性

另请参阅

适用于

OpenTransactedWriteAsync(StorageOpenOptions)

使用指定选项打开文件的随机访问流,该流可用于事务处理写入操作。

public:
 virtual IAsyncOperation<StorageStreamTransaction ^> ^ OpenTransactedWriteAsync(StorageOpenOptions options) = OpenTransactedWriteAsync;
/// [Windows.Foundation.Metadata.Overload("OpenTransactedWriteWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync(StorageOpenOptions const& options);
[Windows.Foundation.Metadata.Overload("OpenTransactedWriteWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageStreamTransaction> OpenTransactedWriteAsync(StorageOpenOptions options);
function openTransactedWriteAsync(options)
Public Function OpenTransactedWriteAsync (options As StorageOpenOptions) As IAsyncOperation(Of StorageStreamTransaction)

参数

options
StorageOpenOptions

枚举值的按位组合,指定用于打开流的选项。

返回

此方法完成后,它将返回 一个 StorageStreamTransaction ,其中包含可用于完成事务的随机访问流和方法。

实现

属性

另请参阅

适用于