DialogSet.Add(Dialog) 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.
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.