Export (0) Print
Expand All

FileSystemProxy.Drives Property

Returns a read-only collection of all available drive names.

Namespace:  Microsoft.VisualBasic.MyServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public ReadOnlyCollection<DriveInfo> Drives { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<DriveInfo>
A read-only collection of all available drives as DriveInfo objects.

This property returns all logical drives.

This example displays the available drive names in a message box.

Dim getInfo = System.IO.DriveInfo.GetDrives()
For Each info In getInfo

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

© 2015 Microsoft