Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.62 KB

istoragefile_moveasync_1322093618.md

File metadata and controls

44 lines (25 loc) · 1.62 KB
-api-id -api-type
M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption)
winrt method

Windows.Storage.IStorageFile.MoveAsync

-description

Moves the current file to the specified folder and renames the file according to the desired name. This method also specifies what to do if a file with the same name already exists in the specified folder.

-parameters

-param destinationFolder

The destination folder where the file is moved.

This destination folder must be a physical location. Otherwise, if the destination folder exists only in memory, like a file group, this method fails and throws an exception.

-param desiredNewName

The desired name of the file after it is moved.

If there is an existing file in the destination folder that already has the specified desiredNewName, the specified NameCollisionOption determines how Windows responds to the conflict.

-param option

An enum value that determines how Windows responds if the desiredNewName is the same as the name of an existing file in the destination folder.

-returns

No object or value is returned by this method.

-remarks

-examples

-see-also

MoveAsync(IStorageFolder), MoveAsync(IStorageFolder, String), MoveAsync