Compartir a través de


ServerEvents Miembros

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

El tipo ServerEvents expone los siguientes miembros.

Métodos

  Nombre Descripción
Método publico Equals (Se hereda de Object).
Método protegido Finalize (Se hereda de Object).
Método publico GetEventSelection Returns the currently selected event notifications.
Método publico GetHashCode (Se hereda de Object).
Método publico GetTraceEventSelection Returns the currently selected event notifications.
Método publico GetType (Se hereda de Object).
Método protegido MemberwiseClone (Se hereda de Object).
Método publico SetCredentials Sets the credentials required by the instance of Microsoft SQL Server.
Método publico StartEvents Starts receiving events.
Método publico StopEvents Stops receiving events.
Método publico SubscribeToEvents(ServerEventSet) Specifies the server events to receive.
Método publico SubscribeToEvents(ServerTraceEventSet) Specifies the server trace events to receive.
Método publico SubscribeToEvents(ServerEventSet, ServerEventHandler) Specifies the server events to receive and the event handler that handles the events.
Método publico SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) Specifies the server trace events to receive and the event handler that handles the events.
Método publico ToString (Se hereda de Object).
Método publico UnsubscribeAllEvents Clears all event settings, and removes all event handlers.
Método publico UnsubscribeFromEvents(ServerEventSet) Clears the specified event settings, and removes all event handlers.
Método publico UnsubscribeFromEvents(ServerTraceEventSet) Clears the specified event settings, and removes all event handlers.

Principio

Eventos

  Nombre Descripción
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.

Principio