Jaa


PromptStyler.Apply Method

Definition

Overloads

Apply(IMessageActivity, String, String)

Style a prompt and populate the Text.

Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String)

Style a prompt and populate the message based on PromptStyle.

Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String)

Apply(IMessageActivity, String, String).

Apply(IMessageActivity, String, String)

Source:
PromptDialog.cs

Style a prompt and populate the Text.

public virtual void Apply (ref Microsoft.Bot.Connector.IMessageActivity message, string prompt, string speak = default);
abstract member Apply : IMessageActivity * string * string -> unit
override this.Apply : IMessageActivity * string * string -> unit
Public Overridable Sub Apply (ByRef message As IMessageActivity, prompt As String, Optional speak As String = Nothing)

Parameters

message
IMessageActivity

The message that will contain the prompt.

prompt
String

The prompt.

speak
String

The speak.

Applies to

Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String)

Source:
PromptDialog.cs

Style a prompt and populate the message based on PromptStyle.

public virtual void Apply<T> (ref Microsoft.Bot.Connector.IMessageActivity message, string prompt, System.Collections.Generic.IReadOnlyList<T> options, System.Collections.Generic.IReadOnlyList<string> descriptions = default, string speak = default);
abstract member Apply : IMessageActivity * string * System.Collections.Generic.IReadOnlyList<'T> * System.Collections.Generic.IReadOnlyList<string> * string -> unit
override this.Apply : IMessageActivity * string * System.Collections.Generic.IReadOnlyList<'T> * System.Collections.Generic.IReadOnlyList<string> * string -> unit
Public Overridable Sub Apply(Of T) (ByRef message As IMessageActivity, prompt As String, options As IReadOnlyList(Of T), Optional descriptions As IReadOnlyList(Of String) = Nothing, Optional speak As String = Nothing)

Type Parameters

T

The type of the options.

Parameters

message
IMessageActivity

The message that will contain the prompt.

prompt
String

The prompt.

options
IReadOnlyList<T>

The options.

descriptions
IReadOnlyList<String>

Descriptions to display for each option.

speak
String

The speak.

Remarks

T should implement ToString() unless descriptions are supplied.

Applies to

Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String)

Source:
PromptDialog.cs
public static void Apply<T> (ref Microsoft.Bot.Connector.IMessageActivity message, string prompt, System.Collections.Generic.IReadOnlyList<T> options, Microsoft.Bot.Builder.Dialogs.PromptStyle promptStyle, System.Collections.Generic.IReadOnlyList<string> descriptions = default, string speak = default);
static member Apply : IMessageActivity * string * System.Collections.Generic.IReadOnlyList<'T> * Microsoft.Bot.Builder.Dialogs.PromptStyle * System.Collections.Generic.IReadOnlyList<string> * string -> unit
Public Shared Sub Apply(Of T) (ByRef message As IMessageActivity, prompt As String, options As IReadOnlyList(Of T), promptStyle As PromptStyle, Optional descriptions As IReadOnlyList(Of String) = Nothing, Optional speak As String = Nothing)

Type Parameters

T

The type of the options.

Parameters

message
IMessageActivity

The message.

prompt
String

The prompt.

options
IReadOnlyList<T>

The options.

promptStyle
PromptStyle

The prompt style.

descriptions
IReadOnlyList<String>

Descriptions for each option.

speak
String

The speak.

Applies to