-api-id | -api-type |
---|---|
M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption) |
winrt method |
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.
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.
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.
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.
No object or value is returned by this method.
MoveAsync(IStorageFolder), MoveAsync(IStorageFolder, String), MoveAsync