語言

FileSystemInfo.Exists 屬性

定義

會取得一個值,表示該檔案或目錄是否存在。

public:
 abstract property bool Exists { bool get(); };
public abstract bool Exists { get; }
member this.Exists : bool
Public MustOverride ReadOnly Property Exists As Boolean

屬性值

true如果該檔案或目錄存在;否則,。 false

備註

關於常見 I/O 任務的清單,請參見 Common I/O 任務。

適用於

另請參閱