StorageFile.CopyAndReplaceAsync(IStorageFile) StorageFile.CopyAndReplaceAsync(IStorageFile) StorageFile.CopyAndReplaceAsync(IStorageFile) StorageFile.CopyAndReplaceAsync(IStorageFile) StorageFile.CopyAndReplaceAsync(IStorageFile) Method

Definition

Replaces the specified file with a copy of the current file.

public : IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace)
IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace) const;
public IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace)
Public Function CopyAndReplaceAsync(fileToReplace As IStorageFile) As IAsyncAction
Windows.Storage.StorageFile.copyAndReplaceAsync(fileToReplace).done( /* Your success and error handlers */ );

Parameters

fileToReplace
IStorageFile IStorageFile IStorageFile

The file to replace.

Returns

No object or value is returned when this method completes.