Click or drag to resize
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
)

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: IAsyncOperationGDStorageFile
When 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