FileInformation.MoveAndReplaceAsync(IStorageFile) 方法

定义

将当前 StorageFile 从其位置移动,并使用它替换指定的 StorageFile

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

参数

fileToReplace
IStorageFile

要替换的 StorageFile

返回

用于管理异步移动和替换操作的对象。

实现

属性

适用于