共用方式為


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

傳回

用於管理非同步移動和取代作業的物件。

實作

屬性

適用於