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

要測試的路徑和檔案名稱。

傳回

如果 path 參考隔離儲存區中的現有檔案而且不是 true,則為 null,否則為 false

屬性

例外狀況

pathnull

隔離儲存區已關閉。

已處置隔離儲存區。

已移除隔離儲存區。

適用於

另請參閱