Partager via


Opérateur NameKey.Equality (Object, NameKey)

Determines whether the the specified Object is the same as the object represented by the specified NameKey .

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

Syntaxe

'Déclaration
Public Shared Operator = ( _
    obj As Object, _
    rightOperand As NameKey _
) As Boolean
'Utilisation
Dim obj As Object 
Dim rightOperand As NameKey 
Dim returnValue As Boolean 

returnValue = (obj = rightOperand)
public static bool operator ==(
    Object obj,
    NameKey rightOperand
)
public:
static bool operator ==(
    Object^ obj, 
    NameKey^ rightOperand
)
static let inline(=)
        obj:Object * 
        rightOperand:NameKey  : 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 is true if the two objects are the same, otherwise false.

Voir aussi

Référence

NameKey Classe

Surcharge Equality

Espace de noms Microsoft.SqlServer.Management.Utility