语言

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

要测试的路径和文件名。

返回

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

特性

例外

path 是 null。

隔离存储已关闭。

已释放隔离存储。

已删除独立存储区。

适用于

另请参阅