DatabaseDdlTriggerEventSet.Subtraction 运算符

Creates a database data definition language (DDL) trigger event set by performing a subtraction operation on a DatabaseDdlTriggerEvent object and a DatabaseDdlTriggerEventSet object.

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

语法

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

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

参数

返回值

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

示例

处理 SMO 事件

请参阅

参考

DatabaseDdlTriggerEventSet 类

Microsoft.SqlServer.Management.Smo 命名空间