共用方式為


FileInformation.OpenTransactedWriteAsync 方法

定義

多載

OpenTransactedWriteAsync()

開啟可用於交易寫入作業之檔案的隨機存取資料流程。

OpenTransactedWriteAsync(StorageOpenOptions)

開啟檔案的隨機存取資料流程,此資料流程可用於具有指定選項的 Transacted-write 作業。

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)

開啟檔案的隨機存取資料流程,此資料流程可用於具有指定選項的 Transacted-write 作業。

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 ,其中包含可用來完成交易的隨機存取資料流程和方法。

實作

屬性

另請參閱

適用於