Opérateur ActivityId.Equality
Determines whether the two instances of activity are equal.
Espace de noms : Microsoft.SqlServer.XEvent
Assembly : Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)
Syntaxe
'Déclaration
Public Shared Operator = ( _
x As ActivityId, _
y As ActivityId _
) As Boolean
'Utilisation
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 prend en charge l'utilisation d'opérateurs surchargés, mais pas la déclaration de nouveaux opérateurs.
Paramètres
- x
Type : Microsoft.SqlServer.XEvent.ActivityId
The first activity to compare.
- y
Type : Microsoft.SqlServer.XEvent.ActivityId
The second activity to compare.
Valeur de retour
Type : System.Boolean
true if the two activities are equal; otherwise, false.