| 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
)
IAsyncAction^ MoveAsync(
[InAttribute] IGDStorageFolder^ destinationFolder,
[InAttribute] String^ desiredNewName,
[InAttribute] NameCollisionOption^ option
)
function MoveAsync(destinationFolder, desiredNewName, 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:
IAsyncActionNo 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