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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro