Condividi tramite


DropDownMember.CompareTo Method (Object)

Compares this object to the specified object.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    obj As Object _
) As Integer
public int CompareTo(
    Object obj
)
public:
virtual int CompareTo(
    Object^ obj
) sealed
abstract CompareTo : 
        obj:Object -> int  
override CompareTo : 
        obj:Object -> int
public final function CompareTo(
    obj : Object
) : int

Parameters

Return Value

Type: Int32
1 if this object is greater than the specified object, 0 if this object equals the specified object, -1 if this object is less than the specified object.

Implements

IComparable.CompareTo(Object)

Remarks

This method is an implementation of the CompareTo method on the IComparable interface.

The base method compares the labels of this object and the specified object but only if the specified object is a DropDownMember object. The result of the comparison is returned.

.NET Framework Security

See Also

Reference

DropDownMember Class

CompareTo Overload

Microsoft.VisualStudio.Package Namespace