Clase SchemaEvents
The SchemaEvents object represents the settings required for SQL Server schema event notification.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Smo.SchemaEvents
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Class SchemaEvents
'Uso
Dim instance As SchemaEvents
public class SchemaEvents
public ref class SchemaEvents
type SchemaEvents = class end
public class SchemaEvents
El tipo SchemaEvents expone los siguientes miembros.
Métodos
Nombre | Descripción | |
---|---|---|
Equals | (Se hereda de Object.) | |
Finalize | (Se hereda de Object.) | |
GetEventSelection | Returns a set of currently subscribed event notifications. | |
GetHashCode | (Se hereda de Object.) | |
GetType | (Se hereda de Object.) | |
MemberwiseClone | (Se hereda de Object.) | |
StartEvents | Starts receiving events. | |
StopEvents | Stops receiving events. | |
SubscribeToEvents(ObjectEventSet) | Specifies the object events to receive. | |
SubscribeToEvents(ObjectEventSet, ServerEventHandler) | Specifies the object events to receive. | |
ToString | (Se hereda de Object.) | |
UnsubscribeAllEvents | Clear all event settings, and removes all event handlers. | |
UnsubscribeFromEvents | Clears the specified event setting, and removes all event handlers. |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
ServerEvent | Specifies the server event handler for schema events. |
Arriba
Comentarios
The SchemaEvents 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.