Opens a random-access stream to the file that can be used for transacted-write operations.
Syntax
storageFile.openTransactedWriteAsync().done( /* Your success and error handlers */ );
Parameters
This method has no parameters.
Return value
Type: IAsyncOperation<StorageStreamTransaction>
When this method completes, it returns a StorageStreamTransaction that contains the random-access stream and methods that can be used to complete transactions.
Remarks
This method will fail if you try to open a write transaction to a file from these sources:
- Streamed files obtained through the file picker
- Media Transfer Protocol (MTP) 2.0 devices like an mp3 player
- Any file system that does not support ReplaceFile
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 2/25/2013