共用方式為


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 命名空間