| IGDStorageFileCopyAsync Method (IGDStorageFolder, String) |
Creates a copy of the file in the specified folder, using the desired name.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax IAsyncOperation<GDStorageFile> CopyAsync(
IGDStorageFolder destinationFolder,
string desiredNewName
)
IAsyncOperation<GDStorageFile^>^ CopyAsync(
[InAttribute] IGDStorageFolder^ destinationFolder,
[InAttribute] String^ desiredNewName
)
function CopyAsync(destinationFolder, desiredNewName);
Parameters
- destinationFolder
- Type: GDIGDStorageFolder
The destination folder where the copy is created. - desiredNewName
- Type: SystemString
The desired name of the copy.
If there is an existing file in the destination folder that already has the specified desiredNewName, SDK generates a unique name for the copy.
Return Value
Type:
IAsyncOperationGDStorageFileWhen this method completes, it returns a
GDStorageFile that represents the copy.
Remarks If you simply want to copy a file in your app, see the
CopyAsync methods of the
GDStorageFile class.
See Also