共用方式為


ServerEvents.SubscribeToEvents Method

Specifies the server events to receive.

備註

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

多載清單

名稱 Description
ServerEvents.SubscribeToEvents (ServerEventSet)
Specifies the server events to receive.
ServerEvents.SubscribeToEvents (ServerTraceEventSet)
Specifies the server trace events to receive.
ServerEvents.SubscribeToEvents (ServerEventSet, ServerEventHandler)
Specifies the server events to receive and the event handler that handles the events.
ServerEvents.SubscribeToEvents (ServerTraceEventSet, ServerEventHandler)
Specifies the server trace events to receive and the event handler that handles the events.

請參閱

參考

ServerEvents Class
ServerEvents Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Handling SMO Events