FileSystem.DirectoryExists メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FileSystem.DirectoryExists メソッドの意味・解説 

FileSystem.DirectoryExists メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

指定したディレクトリが存在するかどうかを示す Boolean 値を返します。

名前空間: Microsoft.VisualBasic.FileIO
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

解説解説

詳細については、Visual Basic のトピック「My.Computer.FileSystem.DirectoryExists メソッド」を参照してください。

DirectoryExists を呼び出すには、FileIOPermission が必要です。

My.Computer.FileSystem.DirectoryExists メソッドを使ったタスクの例を次の表に示します。

使用例使用例

この例では、ディレクトリ C:\backup\logs が存在するかどうかを確認し、そのプロパティをチェックしています。

If My.Computer.FileSystem.DirectoryExists("C:\backup\logs")
 Then
   Dim logInfo As System.IO.DirectoryInfo
   logInfo = My.Computer.FileSystem.GetDirectoryInfo _
   ("C:\backup\logs")
 End If
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からFileSystem.DirectoryExists メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFileSystem.DirectoryExists メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFileSystem.DirectoryExists メソッド を検索

英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「FileSystem.DirectoryExists メソッド」の関連用語

FileSystem.DirectoryExists メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FileSystem.DirectoryExists メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS