다음을 통해 공유


Moniker.Equality(Moniker, Moniker) Operator

Definition

Compares two Monikers based upon their ID to determine if they are equal. Overriding operator == to satisfy CA1036:OverrideMethodsOnComparableTypes

public:
 static bool operator ==(Microsoft::VisualStudio::Modeling::Moniker ^ moniker1, Microsoft::VisualStudio::Modeling::Moniker ^ moniker2);
public static bool operator == (Microsoft.VisualStudio.Modeling.Moniker moniker1, Microsoft.VisualStudio.Modeling.Moniker moniker2);
static member ( = ) : Microsoft.VisualStudio.Modeling.Moniker * Microsoft.VisualStudio.Modeling.Moniker -> bool
Public Shared Operator == (moniker1 As Moniker, moniker2 As Moniker) As Boolean

Parameters

moniker1
Moniker

Moniker being compared to

moniker2
Moniker

Moniker being compared against

Returns

Boolean that indicates if the two Monikers are equal.

Applies to