Compartir a través de


Clase ServerRoleEvents

The ServerRoleEvents object represents the settings required for Microsoft SQL Server ServerRole event notification.

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Management.Smo.ServerRoleEvents

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Class ServerRoleEvents
'Uso
Dim instance As ServerRoleEvents
public class ServerRoleEvents
public ref class ServerRoleEvents
type ServerRoleEvents =  class end
public class ServerRoleEvents

El tipo ServerRoleEvents expone los siguientes miembros.

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetEventSelection Returns the currently selected event notifications.
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público StartEvents Starts receiving events.
Método público StopEvents Stops receiving events.
Método público SubscribeToEvents(ObjectEventSet) Specifies the ServerRole events to receive.
Método público SubscribeToEvents(ObjectEventSet, ServerEventHandler) Specifies the ServerRole events to receive and the event handler that handles the events.
Método público ToString (Se hereda de Object.)
Método público UnsubscribeAllEvents Clears all event settings, and removes all event handlers.
Método público UnsubscribeFromEvents Clears the specified event settings, and removes all event handlers.

Arriba

Eventos

  Nombre Descripción
Evento público ServerEvent Specifies the event raised when an event occurs in ServerRole object and the user has subscribed to the events from that object instance.

Arriba

Comentarios

The ServerRoleEvents class is accessed through Events property and cannot be created as a stand-alone object.

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Controlar eventos SMO

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Smo