Метод UserEvents.SubscribeToEvents (ObjectEventSet)
Specifies the database user events to receive.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub SubscribeToEvents ( _
events As ObjectEventSet _
)
'Применение
Dim instance As UserEvents
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
Тип: Microsoft.SqlServer.Management.Smo.ObjectEventSet
A ObjectEventSet object that specifies the set of events to receive.
Замечания
Events are sent to the event handlers that are registered with the ServerEvent event.