次の方法で共有


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

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

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