Share via


DriveManagementIntrinsics.Get(String) Method

Definition

Gets the drive information for the drive specified by name.

public:
 System::Management::Automation::PSDriveInfo ^ Get(System::String ^ driveName);
public System.Management.Automation.PSDriveInfo Get (string driveName);
member this.Get : string -> System.Management.Automation.PSDriveInfo
Public Function Get (driveName As String) As PSDriveInfo

Parameters

driveName
String

The name of the drive to get the drive information for.

Returns

The drive information that represents the drive of the specified name.

Exceptions

If driveName is null.

If there is no drive with driveName.

Applies to