ReparsePointAware.MoveFile(String, String) 方法

定義

移動指定的檔案至新的位置,提供指定新檔名的選項。 如果檔案的正式路徑包含 Windows Reparse Points,則會擲回 UnauthorizedAccessException。

public static void MoveFile (string sourceFileName, string destFileName);
static member MoveFile : string * string -> unit
Public Shared Sub MoveFile (sourceFileName As String, destFileName As String)

參數

sourceFileName
String

要移動之檔案的完整路徑。

destFileName
String

要移動檔案之新位置的完整路徑。

例外狀況

路徑包含 Windows Reparse Points,否則無法存取。

適用於