Subtraction 运算符

Creates a database event set by performing a subtraction operation on a DatabaseEvent object and a DatabaseEventSet object.

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

语法

声明
Public Shared Operator - ( _
    eventSet As DatabaseEventSet, _
    anEvent As DatabaseEvent _
) As DatabaseEventSet
用法
Dim eventSet As DatabaseEventSet
Dim anEvent As DatabaseEvent
Dim returnValue As DatabaseEventSet

returnValue = (eventSet - anEvent)
public static DatabaseEventSet operator -(
    DatabaseEventSet eventSet,
    DatabaseEvent anEvent
)
public:
static DatabaseEventSet^ operator -(
    DatabaseEventSet^ eventSet, 
    DatabaseEvent^ anEvent
)
static let inline (-)
        eventSet:DatabaseEventSet * 
        anEvent:DatabaseEvent  : DatabaseEventSet
JScript 支持使用重载的运算符,但不支持声明新重载运算符。

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .DatabaseEventSet
A DatabaseEventSet object value that specifies a set of database events.