Subtraction 运算符

Creates a service queue event set by performing a subtraction operation on a ServiceQueueEvent object and a ServiceQueueEventSet object.

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

语法

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

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

参数

返回值

类型:Microsoft.SqlServer.Management.Smo. . :: . .ServiceQueueEventSet
A ServiceQueueEventSet object value that specifies a set of service queue events.