Partager via


PromptStyler.Apply Méthode

Définition

Surcharges

Apply(IMessageActivity, String, String)

Stylez une invite et remplissez le Text.

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

Stylez une invite et remplissez le message en fonction de PromptStyle.

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

Apply(IMessageActivity, String, String).

Apply(IMessageActivity, String, String)

Source:
PromptDialog.cs

Stylez une invite et remplissez le 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)

Paramètres

message
IMessageActivity

Message qui contiendra l’invite.

prompt
String

Invite.

speak
String

La parole.

S’applique à

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

Source:
PromptDialog.cs

Stylez une invite et remplissez le message en fonction de 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)

Paramètres de type

T

Type des options.

Paramètres

message
IMessageActivity

Message qui contiendra l’invite.

prompt
String

Invite.

options
IReadOnlyList<T>

Options.

descriptions
IReadOnlyList<String>

Descriptions à afficher pour chaque option.

speak
String

La parole.

Remarques

T doit implémenter ToString() , sauf si des descriptions sont fournies.

S’applique à

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)

Paramètres de type

T

Type des options.

Paramètres

message
IMessageActivity

Message.

prompt
String

Invite.

options
IReadOnlyList<T>

Options.

promptStyle
PromptStyle

Style d’invite.

descriptions
IReadOnlyList<String>

Descriptions pour chaque option.

speak
String

La parole.

S’applique à