다음을 통해 공유


CompareTo 메서드

Verifies whether the specified object shares the same name as the referenced BackupDeviceItem object.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.SmoExtended(Microsoft.SqlServer.SmoExtended.dll)

구문

‘선언
Public Function CompareTo ( _
    obj As Object _
) As Integer
‘사용 방법
Dim instance As BackupDeviceItem
Dim obj As Object
Dim returnValue As Integer

returnValue = instance.CompareTo(obj)
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

매개 변수

반환 값

유형: System. . :: . .Int32
An Int32 value that specifies the lexical relationship between the two strings.

Value

Description

Less than zero

The referenced object name is less than the object name that is specified by the parameter.

Zero

The referenced object name is equal to the object name that is specified by the parameter.

Greater than zero

The referenced object name is greater than the object name that is specified by the parameter.

구현

IComparable. . :: . .CompareTo(Object)

주의

The comparison of object names is case-insensitive.

-