Método ServerEvents.SubscribeToEvents (ServerEventSet)
Specifies the server events to receive.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Sub SubscribeToEvents ( _
events As ServerEventSet _
)
'Uso
Dim instance As ServerEvents
Dim events As ServerEventSet
instance.SubscribeToEvents(events)
public void SubscribeToEvents(
ServerEventSet events
)
public:
void SubscribeToEvents(
ServerEventSet^ events
)
member SubscribeToEvents :
events:ServerEventSet -> unit
public function SubscribeToEvents(
events : ServerEventSet
)
Parâmetros
- events
Tipo: Microsoft.SqlServer.Management.Smo.ServerEventSet
A ServerEventSet object that specifies the set of events to receive.
Comentários
Events are sent to the event handlers that are registered with the OnEvent statement.