Événement ServerEvent
Specifies the event raised when an event occurs in PartitionScheme object and the user has subscribed to the event from that object instance.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Event ServerEvent As ServerEventHandler
'Utilisation
Dim instance As PartitionSchemeEvents
Dim handler As ServerEventHandler
AddHandler instance.ServerEvent, handler
public event ServerEventHandler ServerEvent
public:
event ServerEventHandler^ ServerEvent {
void add (ServerEventHandler^ value);
void remove (ServerEventHandler^ value);
}
member ServerEvent : IEvent<ServerEventHandler,
ServerEventArgs>
JScript prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.