Share via


DialogContainer.CheckForVersionChangeAsync Method

Definition

CheckForVersionChangeAsync.

protected virtual System.Threading.Tasks.Task CheckForVersionChangeAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckForVersionChangeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CheckForVersionChangeAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function CheckForVersionChangeAsync (dc As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

dc
DialogContext

dialog context.

cancellationToken
CancellationToken

cancellationToken.

Returns

task.

Remarks

Checks to see if a containers child dialogs have changed since the current dialog instance was started.

This should be called at the start of `beginDialog()`, `continueDialog()`, and `resumeDialog()`.

Applies to