Share via


ComponentDialog.AddDialog(Dialog) Method

Definition

Adds a new Dialog to the component dialog and returns the updated component.

public Microsoft.Bot.Builder.Dialogs.ComponentDialog AddDialog (Microsoft.Bot.Builder.Dialogs.Dialog dialog);
member this.AddDialog : Microsoft.Bot.Builder.Dialogs.Dialog -> Microsoft.Bot.Builder.Dialogs.ComponentDialog
Public Function AddDialog (dialog As Dialog) As ComponentDialog

Parameters

dialog
Dialog

The dialog to add.

Returns

The ComponentDialog after the operation is complete.

Remarks

The added dialog's TelemetryClient is set to the TelemetryClient of the component dialog.

Applies to