IsolatedStorageFile.CreateFile(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在独立存储中创建文件。
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) 构造函数。