共用方式為


Inequality 運算子

Creates a database event set by performing an inequality operation on two DatabaseEvent objects.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Operator <> ( _
    a As DatabaseEvent, _
    b As DatabaseEvent _
) As Boolean
'用途
Dim a As DatabaseEvent
Dim b As DatabaseEvent
Dim returnValue As Boolean

returnValue = (a <> b)
public static bool operator !=(
    DatabaseEvent a,
    DatabaseEvent b
)
public:
static bool operator !=(
    DatabaseEvent^ a, 
    DatabaseEvent^ b
)
static let inline (<>)
        a:DatabaseEvent * 
        b:DatabaseEvent  : bool
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:System. . :: . .Boolean
A DatabaseEventSet object value that specifies a set of database events.