Share via


ServerTraceEvent.Equality Operator

Creates a server trace event set by comparing two ServerTraceEvent objects.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    a As ServerTraceEvent, _
    b As ServerTraceEvent _
) As Boolean
'Usage
Dim a As ServerTraceEvent
Dim b As ServerTraceEvent
Dim returnValue As Boolean

returnValue = (a = b)
public static bool operator ==(
    ServerTraceEvent a,
    ServerTraceEvent b
)
public:
static bool operator ==(
    ServerTraceEvent^ a, 
    ServerTraceEvent^ b
)
static let inline (=)
        a:ServerTraceEvent * 
        b:ServerTraceEvent  : bool
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Return Value

Type: System.Boolean
A ServerTraceEventSet object value that specifies a set of server trace events that are common to both ServerTraceEvent objects.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.