IsolatedStorageFile.MoveFile(String, String) 메서드

정의

지정된 파일을 새 위치로 이동하고 필요에 따라 새 파일 이름을 지정할 수 있습니다.

public:
 void MoveFile(System::String ^ sourceFileName, System::String ^ destinationFileName);
public void MoveFile(string sourceFileName, string destinationFileName);
[System.Runtime.InteropServices.ComVisible(false)]
public void MoveFile(string sourceFileName, string destinationFileName);
member this.MoveFile : string * string -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.MoveFile : string * string -> unit
Public Sub MoveFile (sourceFileName As String, destinationFileName As String)

매개 변수

sourceFileName
String

이동할 파일의 이름입니다.

destinationFileName
String

파일의 새 위치에 대한 경로입니다. 파일 이름이 포함된 경우 이동된 파일에는 해당 이름이 포함됩니다.

특성

예외

sourceFileName 또는 destinationFileName 길이가 0인 문자열이거나, 공백만 포함하거나, 메서드에서 정의한 GetInvalidPathChars() 하나 이상의 잘못된 문자를 포함합니다.

sourceFileName 또는 destinationFileName .입니다 null.

격리된 저장소가 닫혔습니다.

격리된 저장소가 삭제되었습니다.

sourceFileName 을(를) 찾을 수 없습니다.

격리된 저장소가 제거되었습니다.

-또는-

격리된 스토리지를 사용할 수 없습니다.

설명

이 메서드는 동일한 경우 sourceFileNamedestinationFileName 예외를 throw하지 않습니다.

적용 대상

추가 정보