語言

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) 構子。

適用於

另請參閱