Share via


IsolatedStorageFile.CreateFile(String) Metode

Definisi

Membuat file di penyimpanan terisolasi.

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

Parameter

path
String

Jalur relatif file yang akan dibuat.

Mengembalikan

File penyimpanan terisolasi baru.

Atribut

Pengecualian

Penyimpanan terisolasi telah dihapus.

-atau-

Penyimpanan terisolasi dinonaktifkan.

path cacat.

pathadalah null.

Direktori di path tidak ada.

Toko terisolasi telah dibuang.

Keterangan

Metode ini setara dengan menggunakan IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) konstruktor.

Berlaku untuk

Lihat juga