PSDriveInfo.Equals 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.
Overloads
| Equals(Object) | Compares this instance to the specified object. | 
| Equals(PSDriveInfo) | Compares this instance to the specified object. | 
Equals(Object)
Compares this instance to the specified object.
public:
 override bool Equals(System::Object ^ obj);public:
 override bool Equals(Platform::Object ^ obj); override bool Equals(winrt::Windows::Foundation::IInspectable const & obj);public override bool Equals(object obj);override this.Equals : obj -> boolPublic Overrides Function Equals (obj As Object) As BooleanParameters
- obj
- Object
An object to compare.
Returns
True if the drive names are equal, false otherwise.
Applies to
Equals(PSDriveInfo)
Compares this instance to the specified object.
public:
 bool Equals(System::Management::Automation::PSDriveInfo ^ drive);public bool Equals(System.Management.Automation.PSDriveInfo drive);override this.Equals : System.Management.Automation.PSDriveInfo -> boolPublic Function Equals (drive As PSDriveInfo) As BooleanParameters
- drive
- PSDriveInfo
An object to compare.
Returns
True if the drive names are equal, false otherwise.