共用方式為


UnsubscribeFromEvents 方法 (ServerEventSet)

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 ServerEventSet _
)
'用途
Dim instance As ServerEvents
Dim events As ServerEventSet

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

參數