IStorageFile.CopyAsync methods

Applies to Windows and Windows Phone

Creates a copy of the file in the specified folder.

Overload list

MethodDescription
CopyAsync(IStorageFolder) Creates a copy of the file in the specified folder.
CopyAsync(IStorageFolder, String) Creates a copy of the file in the specified folder, using the desired name.
CopyAsync(IStorageFolder, 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.

Remarks

If you simply want to copy a file in your app, see the CopyAsync methods of the StorageFile class.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

IStorageFile
StorageFile.CopyAsync

 

 

Show:
© 2015 Microsoft