共用方式為


FileInformation.CopyAndReplaceAsync(IStorageFile) 方法

定義

以目前檔案的複本取代指定的 StorageFile

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

要取代的 StorageFile

傳回

這個方法完成時不會傳回任何物件或值。

實作

屬性

適用於