Partager via


PSDriveInfo.Equals Method

Definition

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 -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

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 -> bool
Public Function Equals (drive As PSDriveInfo) As Boolean

Parameters

drive
PSDriveInfo

An object to compare.

Returns

True if the drive names are equal, false otherwise.

Applies to