Compartilhar via


Membros ServerEvents

The ServerEvents object represents the settings required for SQL Server server-level event notification.

O tipo ServerEvents expõe os seguintes membros.

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetEventSelection Returns the currently selected event notifications.
Método público GetHashCode (Herdado de Object.)
Método público GetTraceEventSelection Returns the currently selected event notifications.
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público SetCredentials Sets the credentials required by the instance of Microsoft SQL Server.
Método público StartEvents Starts receiving events.
Método público StopEvents Stops receiving events.
Método público SubscribeToEvents(ServerEventSet) Specifies the server events to receive.
Método público SubscribeToEvents(ServerTraceEventSet) Specifies the server trace events to receive.
Método público SubscribeToEvents(ServerEventSet, ServerEventHandler) Specifies the server events to receive and the event handler that handles the events.
Método público SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) Specifies the server trace events to receive and the event handler that handles the events.
Método público ToString (Herdado de Object.)
Método público UnsubscribeAllEvents Clears all event settings, and removes all event handlers.
Método público UnsubscribeFromEvents(ServerEventSet) Clears the specified event settings, and removes all event handlers.
Método público UnsubscribeFromEvents(ServerTraceEventSet) Clears the specified event settings, and removes all event handlers.

Início

Eventos

  Nome Descrição
Evento público ServerEvent Specifies the event raised when an event occurs in Server object and the user has subscribed to the events from that object instance.

Início