FileSystemProxy.Drives Property

 
clsCompliantAlternativeNone.

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
    MsgBox(info.name)
Next

FileIOPermission

Controls the ability to access files and folders. Associated enumeration: Unrestricted.

.NET Framework
Available since 2.0
Return to top
Show: