StorageFile.OpenTransactedWriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenTransactedWriteAsync() |
Opens a random-access stream to the file that can be used for transacted-write operations. |
OpenTransactedWriteAsync(StorageOpenOptions) |
Opens a random-access stream to the file that can be used for transacted-write operations with the specified options. |
OpenTransactedWriteAsync()
Opens a random-access stream to the file that can be used for transacted-write operations.
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)
Returns
When this method completes, it returns a StorageStreamTransaction that contains the random-access stream and methods that can be used to complete transactions.
Implements
- Attributes
See also
Applies to
OpenTransactedWriteAsync(StorageOpenOptions)
Opens a random-access stream to the file that can be used for transacted-write operations with the specified options.
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)
Parameters
- options
- StorageOpenOptions
A bitwise combination of the enumeration values that specify options for opening the stream.
Returns
When this method completes, it returns a StorageStreamTransaction that contains the random-access stream and methods that can be used to complete transactions.
Implements
- Attributes
See also
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin