语言

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) 构造函数。

适用于

另请参阅