Share via


AdaptiveDialog.FindDialog(String, DialogContext) Method

Definition

Finds a child dialog that was previously added to the container. Uses DialogContext as fallback to gather the dialog from the ResourceExplorer.

public override Microsoft.Bot.Builder.Dialogs.Dialog FindDialog (string dialogId, Microsoft.Bot.Builder.Dialogs.DialogContext dc = default);
override this.FindDialog : string * Microsoft.Bot.Builder.Dialogs.DialogContext -> Microsoft.Bot.Builder.Dialogs.Dialog
Public Overrides Function FindDialog (dialogId As String, Optional dc As DialogContext = Nothing) As Dialog

Parameters

dialogId
String

The ID of the dialog to lookup.

dc
DialogContext

The dialog context where to find the dialog.

Returns

The Dialog if found; otherwise null.

Remarks

When the Dialog is gathered from the ResourceExplorer, automatically will be loaded into the Dialogs stack.

Applies to