PromptStyler.Apply Método

Definición

Sobrecargas

Apply(IMessageActivity, String, String)

Source:
PromptDialog.cs

Escribe un prompt y llena el 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)

Parámetros

message
IMessageActivity

El mensaje que contendrá el prompt.

prompt
String

Mensaje.

speak
String

Hablar.

Se aplica a

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

Source:
PromptDialog.cs

Escribe un prompt y rellena el mensaje según 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)

Parámetros de tipo

T

El tipo de opciones.

Parámetros

message
IMessageActivity

El mensaje que contendrá el prompt.

prompt
String

Mensaje.

options
IReadOnlyList<T>

Las opciones.

descriptions
IReadOnlyList<String>

Descripciones para mostrar de cada opción.

speak
String

Hablar.

Comentarios

T debería implementarse ToString() a menos que se proporcionen descripciones.

Se aplica a

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)

Parámetros de tipo

T

El tipo de opciones.

Parámetros

message
IMessageActivity

Mensaje.

prompt
String

Mensaje.

options
IReadOnlyList<T>

Las opciones.

promptStyle
PromptStyle

El estilo de prompt.

descriptions
IReadOnlyList<String>

Descripciones de cada opción.

speak
String

Hablar.

Se aplica a