-api-id | -api-type |
---|---|
M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption) |
winrt method |
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.
The destination folder where the copy is created.
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 Windows responds to the conflict.
An enum value that determines how Windows responds if the desiredNewName is the same as the name of an existing file in the destination folder.
When this method completes, it returns a StorageFile that represents the copy.
CopyAsync(IStorageFolder), CopyAsync(IStorageFolder, String), StorageFile.CopyAsync