共用方式為


FileInformation.MoveAsync 方法

定義

多載

MoveAsync(IStorageFolder)

StorageFile 移至指定的 StorageFolder

MoveAsync(IStorageFolder, String)

StorageFile 移至指定的資料夾,並提供檔案的指定檔案名。

MoveAsync(IStorageFolder, String, NameCollisionOption)

StorageFile 移至指定的資料夾,並提供指定的檔案名。 如果同名的檔案已經存在指定的資料夾中,方法也會指定該怎麼做。

MoveAsync(IStorageFolder)

StorageFile 移至指定的 StorageFolder

public:
 virtual IAsyncAction ^ MoveAsync(IStorageFolder ^ destinationFolder) = MoveAsync;
/// [Windows.Foundation.Metadata.Overload("MoveOverloadDefaultNameAndOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction MoveAsync(IStorageFolder const& destinationFolder);
[Windows.Foundation.Metadata.Overload("MoveOverloadDefaultNameAndOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction MoveAsync(IStorageFolder destinationFolder);
function moveAsync(destinationFolder)
Public Function MoveAsync (destinationFolder As IStorageFolder) As IAsyncAction

參數

destinationFolder
IStorageFolder

目的地資料夾。

傳回

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

實作

屬性

另請參閱

適用於

MoveAsync(IStorageFolder, String)

StorageFile 移至指定的資料夾,並提供檔案的指定檔案名。

public:
 virtual IAsyncAction ^ MoveAsync(IStorageFolder ^ destinationFolder, Platform::String ^ desiredNewName) = MoveAsync;
/// [Windows.Foundation.Metadata.Overload("MoveOverloadDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction MoveAsync(IStorageFolder const& destinationFolder, winrt::hstring const& desiredNewName);
[Windows.Foundation.Metadata.Overload("MoveOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction MoveAsync(IStorageFolder destinationFolder, string desiredNewName);
function moveAsync(destinationFolder, desiredNewName)
Public Function MoveAsync (destinationFolder As IStorageFolder, desiredNewName As String) As IAsyncAction

參數

destinationFolder
IStorageFolder

目的地資料夾。

desiredNewName
String

Platform::String

winrt::hstring

新的檔案名。

傳回

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

實作

M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,System.String) M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,Platform::String) M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,winrt::hstring)
屬性

另請參閱

適用於

MoveAsync(IStorageFolder, String, NameCollisionOption)

StorageFile 移至指定的資料夾,並提供指定的檔案名。 如果同名的檔案已經存在指定的資料夾中,方法也會指定該怎麼做。

public:
 virtual IAsyncAction ^ MoveAsync(IStorageFolder ^ destinationFolder, Platform::String ^ desiredNewName, NameCollisionOption option) = MoveAsync;
/// [Windows.Foundation.Metadata.Overload("MoveOverload")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction MoveAsync(IStorageFolder const& destinationFolder, winrt::hstring const& desiredNewName, NameCollisionOption const& option);
[Windows.Foundation.Metadata.Overload("MoveOverload")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction MoveAsync(IStorageFolder destinationFolder, string desiredNewName, NameCollisionOption option);
function moveAsync(destinationFolder, desiredNewName, option)
Public Function MoveAsync (destinationFolder As IStorageFolder, desiredNewName As String, option As NameCollisionOption) As IAsyncAction

參數

destinationFolder
IStorageFolder

目的地資料夾。

desiredNewName
String

Platform::String

winrt::hstring

新的檔案名。

option
NameCollisionOption

值,指出如果檔案名已存在於目的地資料夾中,該怎麼做。

傳回

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

實作

M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,System.String,Windows.Storage.NameCollisionOption) M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,Platform::String,Windows.Storage.NameCollisionOption) M:Windows.Storage.IStorageFile.MoveAsync(Windows.Storage.IStorageFolder,winrt::hstring,Windows.Storage.NameCollisionOption)
屬性

另請參閱

適用於