ServerTraceEvent.Inequality Operator

Creates a server event set by comparing on 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 not in 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