Freigeben über


BackupDeviceItem.CompareTo Method

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

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
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

Parameter

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

Rückgabewert

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.

Hinweise

Aktualisierter Text:

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

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

How to: Back Up Databases and Transaction Logs in Visual Basic .NET
BACKUP (Transact-SQL)
Sichern und Wiederherstellen von Datenbanken in SQL Server