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

要测试的路径。

返回

如果引用独立存储中的现有目录,则为 <a0/>;否则为 ;否则为 >。

属性

例外

pathnull

隔离存储已关闭。

已释放隔离存储。

已删除独立存储区。

-或-

已禁用独立存储。

适用于

另请参阅