IsolatedStorageFile.FileExists(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定路徑是否指向隔離儲存中的現有檔案。
public:
bool FileExists(System::String ^ path);
public bool FileExists(string path);
[System.Runtime.InteropServices.ComVisible(false)]
public bool FileExists(string path);
member this.FileExists : string -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.FileExists : string -> bool
Public Function FileExists (path As String) As Boolean
參數
- path
- String
要測試的路徑和檔名。
傳回
true 若指 path 的是孤立儲存中的現有檔案,且不是 null;否則, false。
- 屬性
例外狀況
path 是 null。
那家孤立的商店已經關閉。
這間孤立的商店已被處理掉。
隔離的商店已被拆除。