Aracılığıyla paylaş


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

'Bildirim
Public Shared Operator = ( _
    a As ServerTraceEvent, _
    b As ServerTraceEvent _
) As Boolean
'Kullanım
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.

Examples

Handling SMO Events

See Also

Reference

ServerTraceEvent Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Trace Events for Use with Event Notifications