IsolatedStorageFile.MoveFile(String, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 파일을 새 위치로 이동하고 필요에 따라 새 파일 이름을 지정할 수 있습니다.
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하지 않습니다.