共用方式為


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 版支援此命名空間、類別或成員。