DropDownMember.CompareTo Method (Object)
Compares this object to the specified object.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Function CompareTo ( _
obj As Object _
) As Integer
public int CompareTo(
Object obj
)
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.
Implements
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
- 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.