Language

FileSystemProxy.Drives Property

Definition

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

public:
 property System::Collections::ObjectModel::ReadOnlyCollection ^ Drives { System::Collections::ObjectModel::ReadOnlyCollection ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection Drives { get; }
member this.Drives : System.Collections.ObjectModel.ReadOnlyCollection
Public ReadOnly Property Drives As ReadOnlyCollection(Of DriveInfo)

Property Value

A read-only collection of all available drives as DriveInfo objects.

Examples

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

Remarks

This property returns all logical drives.

Applies to

See also