共用方式為


IServiceRuntimeWrapper.SubscribeForStoppingNotification 方法

定義

訂閱角色實例的偶數處理常式停止事件

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

參數

handlerObject
Object

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

handler
EventHandler<Object>

要訂閱的處理常式

適用於