Environment.GetLogicalDrives メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim returnValue As String() returnValue = Environment.GetLogicalDrives
各要素に論理ドライブの名前を格納している文字列の配列。たとえば、コンピュータのハード ディスク ドライブが最初の論理ドライブの場合、返される先頭の要素は "C:\" です。


' Sample for the Environment.GetLogicalDrives method Imports System Class Sample Public Shared Sub Main() Console.WriteLine() Dim drives As [String]() = Environment.GetLogicalDrives() Console.WriteLine("GetLogicalDrives: {0}", [String].Join(", ", drives)) End Sub 'Main End Class 'Sample ' 'This example produces the following results: ' 'GetLogicalDrives: A:\, C:\, D:\ '
// Sample for the Environment.GetLogicalDrives method using System; class Sample { public static void Main() { Console.WriteLine(); String[] drives = Environment.GetLogicalDrives(); Console.WriteLine("GetLogicalDrives: {0}", String.Join(", ", drives)); } } /* This example produces the following results: GetLogicalDrives: A:\, C:\, D:\ */
// Sample for the Environment::GetLogicalDrives method using namespace System; int main() { Console::WriteLine(); array<String^>^drives = Environment::GetLogicalDrives(); Console::WriteLine( "GetLogicalDrives: {0}", String::Join( ", ", drives ) ); } /* This example produces the following results: GetLogicalDrives: A:\, C:\, D:\ */
// Sample for the Environment.GetLogicalDrives method import System.*; class Sample { public static void main(String[] args) { Console.WriteLine(); String drives[] = Environment.GetLogicalDrives(); Console.WriteLine("GetLogicalDrives: {0}", String.Join(", ", drives)); } //main } //Sample /* This example produces the following results: GetLogicalDrives: A:\, C:\, D:\ */


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からEnvironment.GetLogicalDrives メソッドを検索する場合は、下記のリンクをクリックしてください。

- Environment.GetLogicalDrives メソッドのページへのリンク