返回一个配置文件是否的值在磁盘上存在。
命名空间: Microsoft.VisualStudio.ManagedInterfaces9
程序集: Microsoft.VisualStudio.ManagedInterfaces.WCF(在 Microsoft.VisualStudio.ManagedInterfaces.WCF.dll 中)
语法
声明
Function FileExists As Boolean
bool FileExists()
bool FileExists()
abstract FileExists : unit -> bool
function FileExists() : boolean
返回值
类型:Boolean
true ,如果文件存在;否则 false。
备注
使用此方法来确定特定层次结构/itemid 的配置文件是否存在。 ,否则, QueryEditConfiguration 方法尝试创建配置文件。 方法返回 false ,如果配置文件存在并且不能用于编辑器中打开,或者,如果文件不存在不能创建。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。