IsolatedStorageFile.OpenFile 메서드

정의

지정된 공유 및 액세스 옵션을 사용하여 파일을 엽니다.

오버로드

OpenFile(String, FileMode)

지정된 모드로 파일을 엽니다.

OpenFile(String, FileMode, FileAccess)

지정된 읽기/쓰기 권한을 사용하여 지정된 모드로 파일을 엽니다.

OpenFile(String, FileMode, FileAccess, FileShare)

지정된 읽기/쓰기 권한과 공유 권한을 사용하여 지정된 모드로 파일을 엽니다.

OpenFile(String, FileMode)

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

지정된 모드로 파일을 엽니다.

public:
 System::IO::IsolatedStorage::IsolatedStorageFileStream ^ OpenFile(System::String ^ path, System::IO::FileMode mode);
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode);
[System.Runtime.InteropServices.ComVisible(false)]
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode);
member this.OpenFile : string * System.IO.FileMode -> System.IO.IsolatedStorage.IsolatedStorageFileStream
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.OpenFile : string * System.IO.FileMode -> System.IO.IsolatedStorage.IsolatedStorageFileStream
Public Function OpenFile (path As String, mode As FileMode) As IsolatedStorageFileStream

매개 변수

path
String

격리된 저장소 안에 있는 파일의 상대 경로입니다.

mode
FileMode

파일을 여는 방법을 지정하는 열거형 값 중 하나입니다.

반환

공유 권한 없이 읽기/쓰기 액세스 권한을 사용하여 지정된 모드로 연 파일입니다.

특성

예외

격리된 저장소가 제거된 경우

또는

격리된 스토리지가 비활성화되었습니다.

path의 형식이 잘못된 경우

path이(가) null인 경우

path에 디렉터리가 없는 경우

파일을 찾을 수 없고 modeOpen으로 설정되어 있는 경우

격리된 저장소가 삭제된 경우

설명

이 메서드는 생성자를 사용하는 IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, IsolatedStorageFile) 것과 같습니다.

추가 정보

적용 대상

OpenFile(String, FileMode, FileAccess)

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

지정된 읽기/쓰기 권한을 사용하여 지정된 모드로 파일을 엽니다.

public:
 System::IO::IsolatedStorage::IsolatedStorageFileStream ^ OpenFile(System::String ^ path, System::IO::FileMode mode, System::IO::FileAccess access);
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode, System.IO.FileAccess access);
[System.Runtime.InteropServices.ComVisible(false)]
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode, System.IO.FileAccess access);
member this.OpenFile : string * System.IO.FileMode * System.IO.FileAccess -> System.IO.IsolatedStorage.IsolatedStorageFileStream
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.OpenFile : string * System.IO.FileMode * System.IO.FileAccess -> System.IO.IsolatedStorage.IsolatedStorageFileStream
Public Function OpenFile (path As String, mode As FileMode, access As FileAccess) As IsolatedStorageFileStream

매개 변수

path
String

격리된 저장소 안에 있는 파일의 상대 경로입니다.

mode
FileMode

파일을 여는 방법을 지정하는 열거형 값 중 하나입니다.

access
FileAccess

읽기, 쓰기 또는 읽기/쓰기 권한으로 파일을 열 것인지를 지정하는 열거형 값 중 하나입니다.

반환

공유 권한 없이 지정된 모드와 액세스 권한을 사용하여 연 파일입니다.

특성

예외

격리된 저장소가 제거된 경우

또는

격리된 스토리지가 비활성화되었습니다.

path의 형식이 잘못된 경우

path이(가) null인 경우

path에 디렉터리가 없는 경우

파일을 찾을 수 없고 modeOpen으로 설정되어 있는 경우

격리된 저장소가 삭제된 경우

설명

이 메서드는 생성자를 사용하는 IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, IsolatedStorageFile) 것과 같습니다.

추가 정보

적용 대상

OpenFile(String, FileMode, FileAccess, FileShare)

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

지정된 읽기/쓰기 권한과 공유 권한을 사용하여 지정된 모드로 파일을 엽니다.

public:
 System::IO::IsolatedStorage::IsolatedStorageFileStream ^ OpenFile(System::String ^ path, System::IO::FileMode mode, System::IO::FileAccess access, System::IO::FileShare share);
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share);
[System.Runtime.InteropServices.ComVisible(false)]
public System.IO.IsolatedStorage.IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share);
member this.OpenFile : string * System.IO.FileMode * System.IO.FileAccess * System.IO.FileShare -> System.IO.IsolatedStorage.IsolatedStorageFileStream
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.OpenFile : string * System.IO.FileMode * System.IO.FileAccess * System.IO.FileShare -> System.IO.IsolatedStorage.IsolatedStorageFileStream
Public Function OpenFile (path As String, mode As FileMode, access As FileAccess, share As FileShare) As IsolatedStorageFileStream

매개 변수

path
String

격리된 저장소 안에 있는 파일의 상대 경로입니다.

mode
FileMode

파일을 열거나 만드는 방법을 지정하는 열거형 값 중 하나입니다.

access
FileAccess

읽기, 쓰기 또는 읽기/쓰기 권한으로 파일을 열 것인지를 지정하는 열거형 값 중 하나입니다.

share
FileShare

이 파일에 대한 다른 IsolatedStorageFileStream 개체의 액세스 유형을 지정하는 열거형 값의 비트 조합입니다.

반환

지정된 공유 옵션을 사용하여 지정된 모드와 액세스 권한으로 연 파일입니다.

특성

예외

격리된 저장소가 제거된 경우

또는

격리된 스토리지가 비활성화되었습니다.

path의 형식이 잘못된 경우

path이(가) null인 경우

path에 디렉터리가 없는 경우

파일을 찾을 수 없고 modeOpen(FileMode)으로 설정되어 있는 경우

격리된 저장소가 삭제된 경우

설명

이 메서드는 생성자를 사용하는 IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) 것과 같습니다.

추가 정보

적용 대상