다음을 통해 공유


BackupDeviceItem.CompareTo Method

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

네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public Function CompareTo ( _
    obj As Object _
) As Integer
public int CompareTo (
    Object obj
)
public:
virtual int CompareTo (
    Object^ obj
) sealed
public final int CompareTo (
    Object obj
)
public final function CompareTo (
    obj : Object
) : int

매개 변수

  • obj
    A Object object value that is used to specify object that is compared with referenced BackupDeviceItem object.

반환 값

A 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 specified by the parameter.

Zero

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

Greater than zero

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

주의

업데이트된 텍스트:

The comparison of object names is case-insensitive, meaning that "MyTable" is the same as "mytable".

이 네임스페이스, 클래스 또는 멤버는 Microsoft .NET Framework 2.0 버전에서만 지원됩니다.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

BackupDeviceItem Class
BackupDeviceItem Members
Microsoft.SqlServer.Management.Smo Namespace

관련 자료

How to: Back Up Databases and Transaction Logs in Visual Basic .NET
BACKUP(Transact-SQL)
SQL Server의 데이터베이스 백업 및 복원