Оператор Subtraction
Creates a server event set by performing a subtraction operation on a ServerEvent object and a ServerEventSet object.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Shared Operator - ( _
eventSet As ServerEventSet, _
anEvent As ServerEvent _
) As ServerEventSet
'Применение
Dim eventSet As ServerEventSet
Dim anEvent As ServerEvent
Dim returnValue As ServerEventSet
returnValue = (eventSet - anEvent)
public static ServerEventSet operator -(
ServerEventSet eventSet,
ServerEvent anEvent
)
public:
static ServerEventSet^ operator -(
ServerEventSet^ eventSet,
ServerEvent^ anEvent
)
static let inline (-)
eventSet:ServerEventSet *
anEvent:ServerEvent : ServerEventSet
JScript поддерживает использование перегруженных операторов, но не объявление новых.
Параметры
- eventSet
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object that specifies the server event set.
- anEvent
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ServerEvent
A ServerEvent object that specifies the server events.
Возвращаемое значение
Тип: Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that specifies a set of server events.