共用方式為


NativeActivityContext.ScheduleDelegate 方法

定義

將活動的回呼方法推入工作項目集區。

public System.Activities.ActivityInstance ScheduleDelegate (System.Activities.ActivityDelegate activityDelegate, System.Collections.Generic.IDictionary<string,object> inputParameters, System.Activities.DelegateCompletionCallback onCompleted = default, System.Activities.FaultCallback onFaulted = default);
member this.ScheduleDelegate : System.Activities.ActivityDelegate * System.Collections.Generic.IDictionary<string, obj> * System.Activities.DelegateCompletionCallback * System.Activities.FaultCallback -> System.Activities.ActivityInstance
Public Function ScheduleDelegate (activityDelegate As ActivityDelegate, inputParameters As IDictionary(Of String, Object), Optional onCompleted As DelegateCompletionCallback = Nothing, Optional onFaulted As FaultCallback = Nothing) As ActivityInstance

參數

activityDelegate
ActivityDelegate

指定活動動作完成時活動傳回的回呼方法。

inputParameters
IDictionary<String,Object>

活動引數名稱及值的字典清單。

onCompleted
DelegateCompletionCallback

表示 ActivityAction 完成時,父活動執行繼續之位置的書籤。

onFaulted
FaultCallback

表示如果錯誤造成 ActivityAction 終止時,父活動執行繼續之位置的書籤。

傳回

活動的執行個體。

適用於