DriveManagementIntrinsics.Get(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.