MonikerKey.CompareTo Method
Compares one MonikerKey to another one.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Function CompareTo ( _
other As MonikerKey _
) As Integer
public int CompareTo(
MonikerKey other
)
public:
virtual int CompareTo(
MonikerKey^ other
) sealed
abstract CompareTo :
other:MonikerKey -> int
override CompareTo :
other:MonikerKey -> int
public final function CompareTo(
other : MonikerKey
) : int
Parameters
other
Type: Microsoft.VisualStudio.Modeling.MonikerKeyThe MonikerKey to which this key is compared.
Return Value
Type: System.Int32
Returns an integer value (0 if identical, less than 0 or greater than 0 if not identical).
Implements
Remarks
If the MonikerName values of the MonikerKey objects are different, this method returns the return value of Compare. If the two MonikerName values are the same, it compares the DomainRelationshipId and DomainClassId GUIDs. If all three values are identical, it returns 0, otherwise it returns a negative integer or a positive integer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.