FileSystemInfo.Exists 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指示文件或目录是否存在的值。
public:
 abstract property bool Exists { bool get(); };public abstract bool Exists { get; }member this.Exists : boolPublic MustOverride ReadOnly Property Exists As Boolean属性值
如果文件或目录存在,则为 true;否则为 false。
注解
有关常见 I/O 任务的列表,请参阅 常见 I/O 任务。