Click or drag to resize
IGDStorageFileMoveAsync Method (IGDStorageFolder, String, NameCollisionOption)
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.

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

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, the specified NameCollisionOption determines how BlackBerry Dynamics responds to the conflict.

option
Type: Windows.StorageNameCollisionOption
An enum value that determines how BlackBerry Dynamics responds if the desiredNewName is the same as the name of an existing file in the destination folder.

Return Value

Type: IAsyncAction
No object or value is returned by this method.
Remarks
If you simply want to move a file in your app, see the MoveAsync method of the GDStorageFile class.
See Also