共用方式為


IServiceRuntimeWrapper.UnsubscribeFromStoppingNotification 方法

定義

從角色實例停止事件取消訂閱指定的偶數處理常式

public void UnsubscribeFromStoppingNotification (object handlerObject, EventHandler<object> handler);
abstract member UnsubscribeFromStoppingNotification : obj * EventHandler<obj> -> unit
Public Sub UnsubscribeFromStoppingNotification (handlerObject As Object, handler As EventHandler(Of Object))

參數

handlerObject
Object

處理常式所屬的物件,或靜態方法的 null

handler
EventHandler<Object>

取消訂閱的處理常式

適用於