IsolatedStorageFile.CreateFile(String) Metoda

Definicja

Tworzy plik w izolowanym magazynie.

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

Parametry

path
String

Ścieżka względna pliku do utworzenia.

Zwraca

Nowy izolowany plik magazynu.

Atrybuty

Wyjątki

Wydzielony magazyn został usunięty.

-lub-

Wydzielona pamięć masowa jest wyłączona.

path jest źle sformułowany.

path to null.

Katalog w programie path nie istnieje.

Wydzielony magazyn został usunięty.

Uwagi

Ta metoda jest równoważna użyciu konstruktora IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) .

Dotyczy

Zobacz też