Compartilhar via


PromptStyler.Apply Método

Definição

Sobrecargas

Apply(IMessageActivity, String, String)

Estilize um prompt e preencha o Text.

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

Estilize um prompt e preencha a mensagem com base em PromptStyle.

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

Apply(IMessageActivity, String, String).

Apply(IMessageActivity, String, String)

Origem:
PromptDialog.cs

Estilize um prompt e preencha o 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

A mensagem que conterá o prompt.

prompt
String

O prompt.

speak
String

A fala.

Aplica-se a

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

Origem:
PromptDialog.cs

Estilize um prompt e preencha a mensagem com base em 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

O tipo das opções.

Parâmetros

message
IMessageActivity

A mensagem que conterá o prompt.

prompt
String

O prompt.

options
IReadOnlyList<T>

As opções.

descriptions
IReadOnlyList<String>

Descrições a serem exibidas para cada opção.

speak
String

A fala.

Comentários

T deve implementar ToString() , a menos que as descrições sejam fornecidas.

Aplica-se a

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

Origem:
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

O tipo das opções.

Parâmetros

message
IMessageActivity

A mensagem.

prompt
String

O prompt.

options
IReadOnlyList<T>

As opções.

promptStyle
PromptStyle

O estilo do prompt.

descriptions
IReadOnlyList<String>

Descrições para cada opção.

speak
String

A fala.

Aplica-se a