Expand Minimize

StorageFile.OpenTransactedWriteAsync | openTransactedWriteAsync method

Applies to Windows and Windows Phone

Opens a random-access stream to the file that can be used for transacted-write operations.

Syntax


Public Function OpenTransactedWriteAsync() As IAsyncOperation(Of StorageStreamTransaction)

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

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFile

 

 

Show:
© 2014 Microsoft