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


Метод SubscribeToEvents (ObjectEventSet)

Specifies the Service Broker service events to receive.

Пространство имен:  Microsoft.SqlServer.Management.Smo.Broker
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub SubscribeToEvents ( _
    events As ObjectEventSet _
)
'Применение
Dim instance As BrokerServiceEvents
Dim events As ObjectEventSet

instance.SubscribeToEvents(events)
public void SubscribeToEvents(
    ObjectEventSet events
)
public:
void SubscribeToEvents(
    ObjectEventSet^ events
)
member SubscribeToEvents : 
        events:ObjectEventSet -> unit 
public function SubscribeToEvents(
    events : ObjectEventSet
)

Параметры

Замечания

Events are sent to the event handlers that are registered with the ServerEvent event.