PSDriveInfo.Equality(PSDriveInfo, PSDriveInfo) Operator

Definition

Equality operator for the drive determines if the drives are equal by having the same name.

C++
public:
 static bool operator ==(System::Management::Automation::PSDriveInfo ^ drive1, System::Management::Automation::PSDriveInfo ^ drive2);

Parameters

drive1
PSDriveInfo

The first object to compare to the second.

drive2
PSDriveInfo

The second object to compare to the first.

Returns

True if the objects are PSDriveInfo objects and have the same name, false otherwise.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0