FileSystemInfo.Exists 属性  [C#]请参见
FileSystemInfo 类 | FileSystemInfo 成员 | System.IO 命名空间 | 使用 I/O | 从文件读取文本 | 向文件写入文本 | FileSystemInfo 成员(Visual J# 语法) | C++ 托管扩展编程 
要求
平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列, .NET Framework 精简版 - Windows CE .NET
语言
C#C++JScriptVisual Basic全部显示
获取指示文件或目录是否存在的值。[Visual Basic]
Public MustOverride ReadOnly Property Exists As Boolean[C#]
public abstract bool Exists {get;}[C++]
public: __property virtual bool get_Exists() = 0;[JScript]
public abstract function get Exists() : Boolean;属性值
如果文件或目录存在,则为 true;否则为 false。