Поделиться через


Оператор 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.