Partilhar via


Método ServerEvents.SubscribeToEvents (ServerTraceEventSet)

Specifies the server trace 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 ServerTraceEventSet _
)
'Uso
Dim instance As ServerEvents 
Dim events As ServerTraceEventSet

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

Parâmetros

Comentários

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

Exemplos

Manipulando eventos SMO

Consulte também

Referência

ServerEvents Classe

Sobrecarregado SubscribeToEvents

Namespace Microsoft.SqlServer.Management.Smo