| 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
)
public:
virtual IAsyncAction^ MoveAsync(
[InAttribute] IGDStorageFolder^ destinationFolder,
[InAttribute] String^ desiredNewName
) sealed
function MoveAsync(destinationFolder, 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:
IAsyncActionNo object or value is returned by this method.
Implements
IGDStorageFileMoveAsync(IGDStorageFolder, String)Exceptions Exception | Condition |
---|
Exception |
File could not de moved. Possible HResult values:
ERROR_ALREADY_EXISTS | E_FAIL |
|
See Also