directory クラス : Exists ゲッタ
説明
ディレクトリが存在するかどうかを示す値を取得します。
構文
directoryInstance.Exists
引数
無し。
返り値
| クラス | 説明 |
| bool | ディレクトリが存在するかどうかを示す値。 |
サンプルコード
| 1: | directory dir = new directory("c:\somewhere..."); |
| 2: | bool exist = dir.Exists; |
注意
これは、System.IO.DirectoryInfo.Exists プロパティのラッパーです。
ディレクトリがすでに存在する場合は、true を返します。 それ以外の場合は、false を返します。


