語言

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

測試的路徑。

傳回

true若指path的是孤立存儲中已有的目錄,且不是null;否則,。 false

屬性

例外狀況

path 是 null。

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

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

隔離的商店已被拆除。

-或-

隔離儲存已被禁用。

適用於

另請參閱