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 终止的情况下将恢复父活动执行的位置。

返回

一个活动的实例。

适用于