PSDriveInfo.GreaterThan(PSDriveInfo, PSDriveInfo) Operator
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.
Compares the specified drives to determine if drive1 is greater than drive2.
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 ( > ) : System.Management.Automation.PSDriveInfo * System.Management.Automation.PSDriveInfo -> bool
Public Shared Operator > (drive1 As PSDriveInfo, drive2 As PSDriveInfo) As Boolean
Parameters
- drive1
- PSDriveInfo
The drive to determine if it is greater than the other drive.
- drive2
- PSDriveInfo
The drive to compare drive1 against.
Returns
True if the lexical comparison of drive1's name is greater than drive2's name.