DialogContainer.FindDialog 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.
Overloads
FindDialog(String) |
Finds a child dialog that was previously added to the container. |
FindDialog(String, DialogContext) |
Finds a child dialog that was previously added to the container. Uses DialogContext as fallback to gather the dialog. |
FindDialog(String)
Finds a child dialog that was previously added to the container.
public virtual Microsoft.Bot.Builder.Dialogs.Dialog FindDialog (string dialogId);
abstract member FindDialog : string -> Microsoft.Bot.Builder.Dialogs.Dialog
override this.FindDialog : string -> Microsoft.Bot.Builder.Dialogs.Dialog
Public Overridable Function FindDialog (dialogId As String) As Dialog
Parameters
- dialogId
- String
The ID of the dialog to lookup.
Returns
The Dialog if found; otherwise null.
Applies to
FindDialog(String, DialogContext)
Finds a child dialog that was previously added to the container. Uses DialogContext as fallback to gather the dialog.
public virtual Microsoft.Bot.Builder.Dialogs.Dialog FindDialog (string dialogId, Microsoft.Bot.Builder.Dialogs.DialogContext dc = default);
abstract member FindDialog : string * Microsoft.Bot.Builder.Dialogs.DialogContext -> Microsoft.Bot.Builder.Dialogs.Dialog
override this.FindDialog : string * Microsoft.Bot.Builder.Dialogs.DialogContext -> Microsoft.Bot.Builder.Dialogs.Dialog
Public Overridable Function FindDialog (dialogId As String, Optional dc As DialogContext = Nothing) As Dialog
Parameters
- dialogId
- String
The ID of the dialog to lookup.
The dialog context fallback where to find the dialog.
Returns
The Dialog if found; otherwise null.