IsolatedStorageFile.DirectoryExists(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定路徑是否指向隔離儲存中的現有目錄。
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。
那家孤立的商店已經關閉。
這間孤立的商店已被處理掉。