DialogSet.Add(Dialog) Method

Definition

Adds a new dialog to the set and returns the set to allow fluent chaining. If the Dialog.Id being added already exists in the set, the dialogs id will be updated to include a suffix which makes it unique. So adding 2 dialogs named "duplicate" to the set would result in the first one having an id of "duplicate" and the second one having an id of "duplicate2".

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

Parameters

dialog
Dialog

The dialog to add.

Returns

The dialog set after the operation is complete.

Remarks

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

Applies to