Compartilhar via


Operador PredSourceInfo.Key.Equality (Object, PredSourceInfo.Key)

Implements the operator == that tests equality between an instance of PredSourceInfo.Key and another object.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)

Sintaxe

'Declaração
Public Shared Operator = ( _
    obj As Object, _
    rightOperand As PredSourceInfo.Key _
) As Boolean
'Uso
Dim obj As Object 
Dim rightOperand As PredSourceInfo.Key 
Dim returnValue As Boolean 

returnValue = (obj = rightOperand)
public static bool operator ==(
    Object obj,
    PredSourceInfo.Key rightOperand
)
public:
static bool operator ==(
    Object^ obj, 
    PredSourceInfo.Key^ rightOperand
)
static let inline(=)
        obj:Object * 
        rightOperand:PredSourceInfo.Key  : bool
JScript dá suporte ao uso de operadores sobrecarregados, mas não à declaração de operadores novos.

Parâmetros

Valor de retorno

Tipo: System.Boolean
A Boolean value that specifies the outcome of performing an equality operation on two objects. If True , the two objects are equal; otherwise False.

Consulte também

Referência

PredSourceInfo.Key Classe

Sobrecarregado Equality

Namespace Microsoft.SqlServer.Management.XEvent