Condividi tramite


Operatore Equality (Utility.Key, Object)

Determines whether the specified object and the left-hand side of the key are equal.

Spazio dei nomi  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Sintassi

'Dichiarazione
Public Shared Operator = ( _
    leftOperand As Utility..::..Key, _
    obj As Object _
) As Boolean
'Utilizzo
Dim leftOperand As Utility..::..Key
Dim obj As Object
Dim returnValue As Boolean

returnValue = (leftOperand = obj)
public static bool operator ==(
    Utility..::..Key leftOperand,
    Object obj
)
public:
static bool operator ==(
    Utility..::..Key^ leftOperand, 
    Object^ obj
)
static let inline (=)
        leftOperand:Utility..::..Key * 
        obj:Object  : bool
JScript supporta l'utilizzo di operatori di overload , ma non la dichiarazione di nuovi operatori.

Parametri

Valore restituito

Tipo: System. . :: . .Boolean
A Boolean value that indicates whether the two values are equal. Returns true if both parameters are nullNothingnullptrunitriferimento Null (Nothing in Visual Basic)., or if both parameters are not nullNothingnullptrunitriferimento Null (Nothing in Visual Basic). and are equal. Otherwise, false.