Compartilhar via


Operador ActivityId.Equality

Determines whether the two instances of activity are equal.

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

Sintaxe

'Declaração
Public Shared Operator = ( _
    x As ActivityId, _
    y As ActivityId _
) As Boolean
'Uso
Dim x As ActivityId 
Dim y As ActivityId 
Dim returnValue As Boolean 

returnValue = (x = y)
public static bool operator ==(
    ActivityId x,
    ActivityId y
)
public:
static bool operator ==(
    ActivityId^ x, 
    ActivityId^ y
)
static let inline(=)
        x:ActivityId * 
        y:ActivityId  : 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
true if the two activities are equal; otherwise, false.

Consulte também

Referência

ActivityId Classe

Namespace Microsoft.SqlServer.XEvent