Share via


IsolatedStorageFile.OpenFile Yöntem

Tanım

Belirtilen paylaşım ve erişim seçeneklerini kullanarak bir dosya açar.

Aşırı Yüklemeler

OpenFile(String, FileMode)

Belirtilen modda bir dosya açar.

OpenFile(String, FileMode, FileAccess)

Belirtilen modda, belirtilen okuma/yazma erişimine sahip bir dosya açar.

OpenFile(String, FileMode, FileAccess, FileShare)

Belirtilen modda, belirtilen okuma/yazma erişimine ve paylaşım iznine sahip bir dosyayı açar.

OpenFile(String, FileMode)

Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs

Belirtilen modda bir dosya açar.

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

Parametreler

path
String

Yalıtılmış depodaki dosyanın göreli yolu.

mode
FileMode

Dosyanın nasıl açıldığını belirten numaralandırma değerlerinden biri.

Döndürülenler

Belirtilen modda açılan, okuma/yazma erişimi olan ve paylaşılmayan bir dosya.

Öznitelikler

Özel durumlar

Yalıtılmış depo kaldırıldı.

-veya-

Yalıtılmış depolama devre dışı bırakıldı.

path hatalı biçimlendirilmiş.

path, null değeridir.

içindeki path dizini yok.

Dosya bulunamadı ve mode olarak ayarlandı Open.

Yalıtılmış depo atıldı.

Açıklamalar

Bu yöntem, oluşturucuyu IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, IsolatedStorageFile) kullanmaya eşdeğerdir.

Ayrıca bkz.

Şunlara uygulanır

OpenFile(String, FileMode, FileAccess)

Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs

Belirtilen modda, belirtilen okuma/yazma erişimine sahip bir dosya açar.

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

Parametreler

path
String

Yalıtılmış depodaki dosyanın göreli yolu.

mode
FileMode

Dosyanın nasıl açıldığını belirten numaralandırma değerlerinden biri.

access
FileAccess

Dosyanın okuma, yazma veya okuma/yazma erişimiyle açılıp açılmayacağını belirten numaralandırma değerlerinden biri.

Döndürülenler

Belirtilen modda ve erişimde açılan ve paylaşılmayan bir dosya.

Öznitelikler

Özel durumlar

Yalıtılmış depo kaldırıldı.

-veya-

Yalıtılmış depolama devre dışı bırakıldı.

path hatalı biçimlendirilmiş.

path, null değeridir.

içindeki path dizini yok.

Dosya bulunamadı ve mode olarak ayarlandı Open.

Yalıtılmış depo atıldı.

Açıklamalar

Bu yöntem, oluşturucuyu IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, IsolatedStorageFile) kullanmaya eşdeğerdir.

Ayrıca bkz.

Şunlara uygulanır

OpenFile(String, FileMode, FileAccess, FileShare)

Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs
Kaynak:
IsolatedStorageFile.cs

Belirtilen modda, belirtilen okuma/yazma erişimine ve paylaşım iznine sahip bir dosyayı açar.

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

Parametreler

path
String

Yalıtılmış depodaki dosyanın göreli yolu.

mode
FileMode

Dosyanın nasıl açıldığını veya oluşturulacağını belirten numaralandırma değerlerinden biri.

access
FileAccess

Dosyanın okuma, yazma veya okuma/yazma erişimiyle açılıp açılmayacağını belirten numaralandırma değerlerinden biri.

share
FileShare

Diğer IsolatedStorageFileStream nesnelerin bu dosyaya erişim türünü belirten sabit listesi değerlerinin bit düzeyinde birleşimi.

Döndürülenler

Belirtilen modda ve erişimde ve belirtilen paylaşım seçenekleriyle açılan bir dosya.

Öznitelikler

Özel durumlar

Yalıtılmış depo kaldırıldı.

-veya-

Yalıtılmış depolama devre dışı bırakıldı.

path hatalı biçimlendirilmiş.

path, null değeridir.

içindeki path dizini yok.

Dosya bulunamadı ve mode olarak ayarlandı Open(FileMode).

Yalıtılmış depo atıldı.

Açıklamalar

Bu yöntem, oluşturucuyu IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) kullanmaya eşdeğerdir.

Ayrıca bkz.

Şunlara uygulanır