PSDriveInfo.Inequality(PSDriveInfo, PSDriveInfo) Operator
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.
Inequality operator for the drive determines if the drives are not equal by using the drive name.
C++
public:
static bool operator !=(System::Management::Automation::PSDriveInfo ^ drive1, System::Management::Automation::PSDriveInfo ^ drive2);
public static bool operator != (System.Management.Automation.PSDriveInfo drive1, System.Management.Automation.PSDriveInfo drive2);
static member op_Inequality : System.Management.Automation.PSDriveInfo * System.Management.Automation.PSDriveInfo -> bool
Public Shared Operator != (drive1 As PSDriveInfo, drive2 As PSDriveInfo) As Boolean
- drive1
- PSDriveInfo
The first object to compare to the second.
- drive2
- PSDriveInfo
The second object to compare to the first.
True if the PSDriveInfo objects do not have the same name, false otherwise.
Product | Versions |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |