Freigeben über


ActivityId.Equality-Operator

Determines whether the two instances of activity are equal.

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

Syntax

'Declaration
Public Shared Operator = ( _
    x As ActivityId, _
    y As ActivityId _
) As Boolean
'Usage
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 unterstützt die Verwendung überladener Operatoren, aber nicht die Deklaration neuer Operatoren.

Parameter

Rückgabewert

Typ: System.Boolean
true if the two activities are equal; otherwise, false.

Siehe auch

Verweis

ActivityId Klasse

Microsoft.SqlServer.XEvent-Namespace