Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.49 KB

istoragefile_copyasync_460876542.md

File metadata and controls

35 lines (24 loc) · 1.49 KB
-api-id -api-type
M:Windows.Storage.IStorageFile.CopyAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption)
winrt method

Windows.Storage.IStorageFile.CopyAsync

-description

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.

-parameters

-param destinationFolder

The destination folder where the copy is created.

-param desiredNewName

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.

-param option

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.

-returns

When this method completes, it returns a StorageFile that represents the copy.

-remarks

-examples

-see-also

CopyAsync(IStorageFolder), CopyAsync(IStorageFolder, String), StorageFile.CopyAsync