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)
属性

另请参阅

适用于