NativeActivityUpdateContext.ScheduleDelegate 方法

定义

将活动的回调方法推送到工作项池中。

public void 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 -> unit
Public Sub ScheduleDelegate (activityDelegate As ActivityDelegate, inputParameters As IDictionary(Of String, Object), Optional onCompleted As DelegateCompletionCallback = Nothing, Optional onFaulted As FaultCallback = Nothing)

参数

activityDelegate
ActivityDelegate

当指定的活动操作完成时,活动返回到的回调方法。

inputParameters
IDictionary<String,Object>

活动自变量名称和值的字典列表。

onCompleted
DelegateCompletionCallback

一个书签,用于指示 ActivityAction 完成后恢复父活动执行的位置。

onFaulted
FaultCallback

一个书签,用于指示在错误导致 ActivityAction 终止的情况下将恢复父活动执行的位置。

适用于