IsolatedStorageFile.DirectoryExists(String) 方法

定義

判斷指定路徑是否參考隔離儲存區中的現有目錄。

public:
 bool DirectoryExists(System::String ^ path);
public bool DirectoryExists (string path);
[System.Runtime.InteropServices.ComVisible(false)]
public bool DirectoryExists (string path);
member this.DirectoryExists : string -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.DirectoryExists : string -> bool
Public Function DirectoryExists (path As String) As Boolean

參數

path
String

要測試的路徑。

傳回

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

屬性

例外狀況

pathnull

隔離儲存區已關閉。

已處置隔離儲存區。

已移除隔離儲存區。

-或-

隔離儲存區已停用。

適用於

另請參閱