Evento StateChange
The event that occurs when the instance of SQL Server changes state.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxe
'Declaração
Public Event StateChange As StateChangeEventHandler
'Uso
Dim instance As ConnectionManager
Dim handler As StateChangeEventHandler
AddHandler instance.StateChange, handler
public event StateChangeEventHandler StateChange
public:
event StateChangeEventHandler^ StateChange {
void add (StateChangeEventHandler^ value);
void remove (StateChangeEventHandler^ value);
}
member StateChange : IEvent<StateChangeEventHandler,
StateChangeEventArgs>
JScript dá suporte ao uso de eventos, mas não à declaração de eventos novos.
Comentários
The event is handled by the specified event handler.
Consulte também