Subtraction 运算符

Creates an assembly event set by performing a subtraction operation on a SqlAssemblyEvent object and a SqlAssemblyEventSet object.

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

语法

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

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

参数

返回值

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