| IGDStorageFileCopyAsync Method (IGDStorageFolder, String, NameCollisionOption) |
Creates a copy of the file in the specified folder, using the desired name. This method also specifies what to do if an existing file in the specified folder has the same name.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax IAsyncOperation<GDStorageFile> CopyAsync(
IGDStorageFolder destinationFolder,
string desiredNewName,
NameCollisionOption option
)
IAsyncOperation<GDStorageFile^>^ CopyAsync(
[InAttribute] IGDStorageFolder^ destinationFolder,
[InAttribute] String^ desiredNewName,
[InAttribute] NameCollisionOption^ option
)
function CopyAsync(destinationFolder, desiredNewName, option);
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, the specified NameCollisionOption determines how the SDK responds to the conflict.
- option
- Type: Windows.StorageNameCollisionOption
One of the enumeration values that determines how to handle the collision if a file with the specified desiredNewName already exists in the destination folder.
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