Partager via


Méthode BackupDeviceItem.CompareTo

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Syntaxe

'Déclaration
Public Function CompareTo ( _
    obj As Object _
) As Integer
'Utilisation
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

Paramètres

Valeur de retour

Type : 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.

Implémente

IComparable.CompareTo(Object)

Notes

The comparison of object names is case-insensitive.

-

Exemples

Sauvegarde et restauration des bases de données et journaux de transactions

Voir aussi

Référence

BackupDeviceItem Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

BACKUP (Transact-SQL)