LoginEvents.ServerEvent 事件
Specifies the event raised when an event occurs in Login object and the user has subscribed to the event from that object instance.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Event ServerEvent As ServerEventHandler
用法
Dim instance As LoginEvents
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 支持使用事件,但不支持声明新事件。