語言

Files.Move(IPath, IPath, ICopyOption[]) 方法

定義

將檔案移位或重新命名為目標檔案。

[Android.Runtime.Register("move", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? Move(Java.Nio.FileNio.IPath? source, Java.Nio.FileNio.IPath? target, params Java.Nio.FileNio.ICopyOption[]? options);
[<Android.Runtime.Register("move", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member Move : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath * Java.Nio.FileNio.ICopyOption[] -> Java.Nio.FileNio.IPath

參數

source
IPath

檔案移動路徑

target
IPath

目標檔案的路徑(可能與來源路徑不同的提供者相關聯)

options
ICopyOption[]

選項指定移動方式

傳回

目標檔案的路徑

屬性

備註

Java 文件 java.nio.file.Files.move(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於