IsolatedStorageFile.CopyFile 메서드

정의

기존 파일을 새 파일에 복사합니다.

오버로드

Name Description
CopyFile(String, String)

기존 파일을 새 파일에 복사합니다.

CopyFile(String, String, Boolean)

기존 파일을 새 파일에 복사하고 필요에 따라 기존 파일을 덮어씁니다.

CopyFile(String, String)

Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs

기존 파일을 새 파일에 복사합니다.

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

매개 변수

sourceFileName
String

복사할 파일의 이름입니다.

destinationFileName
String

대상 파일의 이름입니다. 디렉터리 또는 기존 파일일 수 없습니다.

특성

예외

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

sourceFileName 또는 destinationFileName .입니다 null.

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

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

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

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

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

-또는-

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

-또는-

destinationFileName 존재.

-또는-

I/O 오류가 발생했습니다.

설명

sourceFileName 다른 destinationFileName 파일 이름을 지정해야 합니다. IsolatedStorageFile.CopyFile(String, String, Boolean) 기존 파일을 덮어쓰려면 메서드 오버로드를 사용합니다.

추가 정보

적용 대상

CopyFile(String, String, Boolean)

Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs

기존 파일을 새 파일에 복사하고 필요에 따라 기존 파일을 덮어씁니다.

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

매개 변수

sourceFileName
String

복사할 파일의 이름입니다.

destinationFileName
String

대상 파일의 이름입니다. 디렉터리가 될 수 없습니다.

overwrite
Boolean

대상 파일을 덮어쓸 수 있으면

특성

예외

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

sourceFileName 또는 destinationFileName .입니다 null.

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

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

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

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

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

-또는-

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

-또는-

I/O 오류가 발생했습니다.

설명

sourceFileNamedestinationFileName 같은 파일 이름(있는 경우 overwrite )을 가질 수 있습니다 true.

추가 정보

적용 대상