DropDownMember::CompareTo Method (Object^)

 

Compares this object to the specified object.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int CompareTo(
	Object^ obj
) sealed

Parameters

obj
Type: System::Object^

[in] The DropDownMember object to compare to.

Return Value

Type: System::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.

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.

Return to top
Show: