IsolatedStorageFile.CreateFile(String) Метод

Определение

Создает файл в изолированном хранилище.

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

Параметры

path
String

Относительный путь к создаваемому файлу.

Возвращаемое значение

Новый файл в изолированном хранилище.

Атрибуты

Исключения

Изолированное хранилище было удалено.

-или-

Изолированное хранилище отключено.

Неверный формат параметра path.

path имеет значение null.

Каталог в path не существует.

Изолированное хранилище было ликвидировано.

Комментарии

Этот метод эквивалентен использованию конструктора IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) .

Применяется к

См. также раздел