共用方式為


ServerRoleEvents.StopEvents 方法

Stops receiving events.

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

語法

'宣告
Public Sub StopEvents
'用途
Dim instance As ServerRoleEvents

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

範例

處理 SMO 事件

請參閱

參考

ServerRoleEvents 類別

Microsoft.SqlServer.Management.Smo 命名空間