Partilhar via


Método SubscribeToEvents (ServerEventSet)

Specifies the server events to receive.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub SubscribeToEvents ( _
    events As ServerEventSet _
)
'Uso
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
)

Parâmetros

Comentários

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