Share via


IFormBuilder<T>.OnCompletion(OnCompletionAsyncDelegate<T>) Method

Definition

Delegate to call when form is completed.

public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> OnCompletion (Microsoft.Bot.Builder.FormFlow.OnCompletionAsyncDelegate<T> callback);
abstract member OnCompletion : Microsoft.Bot.Builder.FormFlow.OnCompletionAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function OnCompletion (callback As OnCompletionAsyncDelegate(Of T)) As IFormBuilder(Of T)

Parameters

callback
OnCompletionAsyncDelegate<T>

Delegate to call on completion.

Returns

Modified IFormBuilder.

Remarks

This should only be used for side effects such as calling your service with the form state results. In any case the completed form state will be passed to the parent dialog.

Applies to