Share via


DialogTurnResult Class

Definition

Result returned to the caller of one of the various stack manipulation methods.

public class DialogTurnResult
type DialogTurnResult = class
Public Class DialogTurnResult
Inheritance
DialogTurnResult

Remarks

Use EndDialogAsync(Object, CancellationToken) to end a Dialog and return a result to the calling context.

Constructors

DialogTurnResult(DialogTurnStatus, Object)

Initializes a new instance of the DialogTurnResult class.

Properties

ParentEnded

Gets or sets a value indicating whether a DialogCommand has ended its parent container and the parent should not perform any further processing.

Result

Gets or sets the result returned by a dialog that was just ended. This will only be populated in certain cases:

  • The bot calls DialogContext.BeginDialogAsync() to start a new dialog and the dialog ends immediately.
  • The bot calls DialogContext.ContinueDialogAsync() and a dialog that was active ends.

In all cases where it's populated, ActiveDialog will be null.

Status

Gets or sets the current status of the stack.

Applies to