ServerEvents.UnsubscribeAllEvents 方法

Clears all event settings, and removes all event handlers.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub UnsubscribeAllEvents
用法
Dim instance As ServerEvents

instance.UnsubscribeAllEvents()
public void UnsubscribeAllEvents()
public:
void UnsubscribeAllEvents()
member UnsubscribeAllEvents : unit -> unit
public function UnsubscribeAllEvents()

示例

处理 SMO 事件

请参阅

参考

ServerEvents 类

Microsoft.SqlServer.Management.Smo 命名空间