CompletionCallback<TResult> 委托

定义

活动完成后调用的方法。The method that is called when an activity completes.

generic <typename TResult>
public delegate void CompletionCallback(NativeActivityContext ^ context, ActivityInstance ^ completedInstance, TResult result);
public delegate void CompletionCallback<TResult>(NativeActivityContext context, ActivityInstance completedInstance, TResult result);
type CompletionCallback<'Result> = delegate of NativeActivityContext * ActivityInstance * 'Result -> unit
Public Delegate Sub CompletionCallback(Of TResult)(context As NativeActivityContext, completedInstance As ActivityInstance, result As TResult)

类型参数

TResult

结果值的类型。The type of the result value.

参数

context
NativeActivityContext

活动的执行环境。The execution environment of the activity.

completedInstance
ActivityInstance

已完成的活动。The activity that completed.

result

已完成的活动的 TResult 值。The TResult value of the activity that completed.

继承
CompletionCallback<TResult>

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于