語言

IsolatedStorageFile.FileExists(String) 方法

定義

判斷指定路徑是否指向隔離儲存中的現有檔案。

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。

那家孤立的商店已經關閉。

這間孤立的商店已被處理掉。

隔離的商店已被拆除。

適用於

另請參閱