Inequality 运算符

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Shared Operator <> ( _
    a As ServerTraceEvent, _
    b As ServerTraceEvent _
) As Boolean
用法
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 支持使用重载的运算符,但不支持声明新重载运算符。

参数

返回值

类型:System. . :: . .Boolean
A ServerTraceEventSet object value that specifies a set of server trace events that are not in both ServerTraceEvent objects.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。