Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
The ServerEvents object represents the settings required for SQL Server server-level event notification.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Smo.ServerEvents
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public NotInheritable Class ServerEvents
'Uso
Dim instance As ServerEvents
public sealed class ServerEvents
public ref class ServerEvents sealed
[<SealedAttribute>]
type ServerEvents = class end
public final class ServerEvents
El tipo ServerEvents expone los siguientes miembros.
Métodos
| Nombre | Descripción | |
|---|---|---|
![]() |
Equals | (Se hereda de Object.) |
![]() |
GetEventSelection | Returns the currently selected event notifications. |
![]() |
GetHashCode | (Se hereda de Object.) |
![]() |
GetTraceEventSelection | Returns the currently selected event notifications. |
![]() |
GetType | (Se hereda de Object.) |
![]() |
SetCredentials | Sets the credentials required by the instance of Microsoft SQL Server. |
![]() |
StartEvents | Starts receiving events. |
![]() |
StopEvents | Stops receiving events. |
![]() |
SubscribeToEvents(ServerEventSet) | Specifies the server events to receive. |
![]() |
SubscribeToEvents(ServerTraceEventSet) | Specifies the server trace events to receive. |
![]() |
SubscribeToEvents(ServerEventSet, ServerEventHandler) | Specifies the server events to receive and the event handler that handles the events. |
![]() |
SubscribeToEvents(ServerTraceEventSet, ServerEventHandler) | Specifies the server trace events to receive and the event handler that handles the events. |
![]() |
ToString | (Se hereda de Object.) |
![]() |
UnsubscribeAllEvents | Clears all event settings, and removes all event handlers. |
![]() |
UnsubscribeFromEvents(ServerEventSet) | Clears the specified event settings, and removes all event handlers. |
![]() |
UnsubscribeFromEvents(ServerTraceEventSet) | Clears the specified event settings, and removes all event handlers. |
Arriba
Eventos
| Nombre | Descripción | |
|---|---|---|
![]() |
ServerEvent | Specifies the event raised when an event occurs in Server object and the user has subscribed to the events from that object instance. |
Arriba
Comentarios
The ServerEvents 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
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.
.gif)
.gif)