Share via


DialogExpression Class

Definition

DialogExpression - represents a property which is either a Dialog or a string expression for a dialogId.

public class DialogExpression : AdaptiveExpressions.Properties.ObjectExpression<Microsoft.Bot.Builder.Dialogs.Dialog>
type DialogExpression = class
    inherit ObjectExpression<Dialog>
Public Class DialogExpression
Inherits ObjectExpression(Of Dialog)
Inheritance

Remarks

String values are always interpreted as a string with interpolation, unless it has '=' prefix or not. The result is interpreted as a resource Id or dialogId.

Constructors

DialogExpression()

Initializes a new instance of the DialogExpression class.

DialogExpression(Dialog)

Initializes a new instance of the DialogExpression class.

DialogExpression(JToken)

Initializes a new instance of the DialogExpression class.

DialogExpression(String)

Initializes a new instance of the DialogExpression class.

Properties

ExpressionText

Gets or sets the expression text to evaluate to get the value.

(Inherited from ExpressionProperty<T>)
Value

Gets or sets the raw value of the expression property.

(Inherited from ExpressionProperty<T>)

Methods

ConvertObject(Object)

Convert raw object to desired value type.

(Inherited from ExpressionProperty<T>)
GetObject(Object)

Get value as object.

(Inherited from ExpressionProperty<T>)
GetValue(Object)

Get the value.

(Inherited from ExpressionProperty<T>)
SetObject(Object)

Set value as object.

(Inherited from ExpressionProperty<T>)
SetValue(Object)

Sets the raw value of the expression property.

ToExpression()

This will return the existing expression or ConstantExpression(Value) if the value is non-complex type.

(Inherited from ExpressionProperty<T>)
ToString()

Returns a string that represents the current object.

TryGetObject(Object)

Try Get value as object.

(Inherited from ExpressionProperty<T>)
TryGetValue(Object)

Try to Get the value.

(Inherited from ExpressionProperty<T>)

Operators

Implicit(Dialog to DialogExpression)

Converts a Dialog into a DialogExpression.

Implicit(JToken to DialogExpression)

Converts a Newtonsoft.Json.Linq.JToken into a DialogExpression.

Implicit(String to DialogExpression)

Converts a string into a DialogExpression.

Applies to