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


Метод SubscribeToEvents (ServerEventSet)

Specifies the server events to receive.

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

Синтаксис

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

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

Параметры

Замечания

Events are sent to the event handlers that are registered with the OnEvent statement.