Share via


SchemaEvents.ServerEvent Event

Specifies the server event handler for schema events.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Event ServerEvent As ServerEventHandler
'Usage
Dim instance As SchemaEvents 
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 supports the use of events, but not the declaration of new ones.

Examples

Handling SMO Events

See Also

Reference

SchemaEvents Class

Microsoft.SqlServer.Management.Smo Namespace