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

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

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

適用於