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

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

FileSystem.GetDriveInfo メソッド

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

指定したドライブの DriveInfo オブジェクト返します

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

Public Shared Function GetDriveInfo
 ( _
    drive As String _
) As DriveInfo
Dim drive As String
Dim returnValue As DriveInfo

returnValue = FileSystem.GetDriveInfo(drive)
public static DriveInfo GetDriveInfo (
    string drive
)
public:
static DriveInfo^ GetDriveInfo (
    String^ drive
)
public static DriveInfo GetDriveInfo (
    String drive
)
public static function GetDriveInfo
 (
    drive : String
) : DriveInfo

パラメータ

drive

String調査対象ドライブ必須

戻り値
DriveInfo

解説解説
使用例使用例

この例では、C ドライブDriveInfo オブジェクト取得してドライブ情報表示します

Dim getInfo As System.IO.DriveInfo
getInfo = My.Computer.FileSystem.GetDriveInfo("C:\")
MsgBox("The drive's type is " & getInfo.DriveType)
MsgBox("The drive has " & getInfo.TotalFreeSpace
 & " bytes free.")

ドライブ種類については、「DriveType」を参照してください

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FileSystem クラス
FileSystem メンバ
Microsoft.VisualBasic.FileIO 名前空間
System.IO.DriveInfo
GetDriveInfo
DriveType
その他の技術情報
My.Computer.FileSystem.GetDriveInfo メソッド
My.Computer.FileSystem オブジェクト
Visual Basic におけるファイルディレクトリ、およびドライブプロパティ



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

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

   

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



FileSystem.GetDriveInfo メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS