Click or drag to resize
GDStorageFileMoveAsync Method (IGDStorageFolder, String)
Moves the current file to the specified folder and renames the file according to the desired name.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public IAsyncAction MoveAsync(
	IGDStorageFolder destinationFolder,
	string desiredNewName
)

Parameters

destinationFolder
Type: GDIGDStorageFolder
The destination folder where the file is moved.
desiredNewName
Type: SystemString

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 an Exception is thrown.

Return Value

Type: IAsyncAction
No object or value is returned by this method.

Implements

IGDStorageFileMoveAsync(IGDStorageFolder, String)
Exceptions
ExceptionCondition
Exception File could not de moved. Possible HResult values:
ERROR_ALREADY_EXISTS
E_FAIL
See Also