IFormBuilder<T>.OnCompletion(OnCompletionAsyncDelegate<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.