StorageFile.OpenTransactedWriteAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 ,其中包含可用來完成交易的隨機存取資料流程和方法。
實作
- 屬性