共用方式為


ViewEvents.UnsubscribeFromEvents 方法

Clears the specified event settings, and removes all event handlers.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub UnsubscribeFromEvents ( _
    events As ViewEventSet _
)
'用途
Dim instance As ViewEvents 
Dim events As ViewEventSet

instance.UnsubscribeFromEvents(events)
public void UnsubscribeFromEvents(
    ViewEventSet events
)
public:
void UnsubscribeFromEvents(
    ViewEventSet^ events
)
member UnsubscribeFromEvents : 
        events:ViewEventSet -> unit
public function UnsubscribeFromEvents(
    events : ViewEventSet
)

參數

範例

處理 SMO 事件

請參閱

參考

ViewEvents 類別

Microsoft.SqlServer.Management.Smo 命名空間