Partager via


MonikerKey.CompareTo Method

Compares one MonikerKey to another one.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Déclaration
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

Return Value

Type: System.Int32
Returns an integer value (0 if identical, less than 0 or greater than 0 if not identical).

Implements

IComparable<T>.CompareTo(T)

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

See Also

Reference

MonikerKey Class

Microsoft.VisualStudio.Modeling Namespace