IsolatedStorageFile.OpenFile 메서드

정의

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

오버로드

Name Description
OpenFile(String, FileMode)

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

OpenFile(String, FileMode, FileAccess)

지정된 읽기/쓰기 액세스 권한이 있는 지정된 모드에서 파일을 엽니다.

OpenFile(String, FileMode, FileAccess, FileShare)

지정된 읽기/쓰기 액세스 권한 및 공유 권한이 있는 지정된 모드에서 파일을 엽니다.

OpenFile(String, FileMode)

Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
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 형식이 잘못되었습니다.

pathnull입니다.

디렉터리가 path 없습니다.

파일을 찾을 수 없으며 이 파일은 mode .로 설정됩니다 Open.

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

설명

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

추가 정보

적용 대상

OpenFile(String, FileMode, FileAccess)

Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
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 형식이 잘못되었습니다.

pathnull입니다.

디렉터리가 path 없습니다.

파일을 찾을 수 없으며 이 파일은 mode .로 설정됩니다 Open.

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

설명

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

추가 정보

적용 대상

OpenFile(String, FileMode, FileAccess, FileShare)

Source:
IsolatedStorageFile.cs
Source:
IsolatedStorageFile.cs
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 형식이 잘못되었습니다.

pathnull입니다.

디렉터리가 path 없습니다.

파일을 찾을 수 없으며 이 파일은 mode .로 설정됩니다 Open(FileMode).

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

설명

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

추가 정보

적용 대상