StorageFile.CopyAndReplaceAsync(IStorageFile) 方法

定义

将指定的文件替换为当前文件的副本。

public:
 virtual IAsyncAction ^ CopyAndReplaceAsync(IStorageFile ^ fileToReplace) = CopyAndReplaceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CopyAndReplaceAsync(IStorageFile const& fileToReplace);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace);
function copyAndReplaceAsync(fileToReplace)
Public Function CopyAndReplaceAsync (fileToReplace As IStorageFile) As IAsyncAction

参数

fileToReplace
IStorageFile

要替换的文件。

返回

此方法完成后,不会返回任何对象或值。

实现

属性

适用于