Partager via


Inequality opérateur

Determines whether two objects are unequal by performing an inequality operation on two BackupDeviceItem objects.

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

Syntaxe

'Déclaration
Public Shared Operator <> ( _
    r1 As BackupDeviceItem, _
    r2 As BackupDeviceItem _
) As Boolean
'Utilisation
Dim r1 As BackupDeviceItem
Dim r2 As BackupDeviceItem
Dim returnValue As Boolean

returnValue = (r1 <> r2)
public static bool operator !=(
    BackupDeviceItem r1,
    BackupDeviceItem r2
)
public:
static bool operator !=(
    BackupDeviceItem^ r1, 
    BackupDeviceItem^ r2
)
static let inline (<>)
        r1:BackupDeviceItem * 
        r2:BackupDeviceItem  : bool
JScript prend en charge l'utilisation d'opérateurs surchargés, mais pas la déclaration de nouveaux opérateurs.

Paramètres

Valeur de retour

Type : System. . :: . .Boolean
A Boolean value that specifies the outcome of the inequality operation.
If True, the two objects are unequal. Otherwise, False.