Dela via


PromptStyler.Apply Metod

Definition

Överlagringar

Apply(IMessageActivity, String, String)

Formatera en prompt och fyll i Text.

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

Formatera en prompt och fyll i meddelandet baserat på PromptStyle.

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

Apply(IMessageActivity, String, String).

Apply(IMessageActivity, String, String)

Källa:
PromptDialog.cs

Formatera en prompt och fyll i 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)

Parametrar

message
IMessageActivity

Meddelandet som ska innehålla prompten.

prompt
String

Kommandotolken.

speak
String

Tala.

Gäller för

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

Källa:
PromptDialog.cs

Formatera en prompt och fyll i meddelandet baserat på 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)

Typparametrar

T

Typ av alternativ.

Parametrar

message
IMessageActivity

Meddelandet som ska innehålla prompten.

prompt
String

Kommandotolken.

options
IReadOnlyList<T>

Alternativen.

descriptions
IReadOnlyList<String>

Beskrivningar som ska visas för varje alternativ.

speak
String

Tala.

Kommentarer

T ToString() implementeras såvida inte beskrivningar anges.

Gäller för

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

Källa:
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)

Typparametrar

T

Typ av alternativ.

Parametrar

message
IMessageActivity

Meddelandet.

prompt
String

Kommandotolken.

options
IReadOnlyList<T>

Alternativen.

promptStyle
PromptStyle

Promptstilen.

descriptions
IReadOnlyList<String>

Beskrivningar för varje alternativ.

speak
String

Tala.

Gäller för