Språk

PromptStyler.Apply Metod

Definition

Överlagringar

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 kommer att innehålla prompten.

prompt
String

Uppmaningen.

speak
String

Talet.

Gäller för

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

Källa:
PromptDialog.cs

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

Typen av alternativ.

Parametrar

message
IMessageActivity

Meddelandet som kommer att innehålla prompten.

prompt
String

Uppmaningen.

options
IReadOnlyList<T>

Alternativen.

descriptions
IReadOnlyList<String>

Beskrivningar att visa för varje alternativ.

speak
String

Talet.

Kommentarer

T bör implementeras ToString() om inte beskrivningar ges.

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

Typen av alternativ.

Parametrar

message
IMessageActivity

Meddelandet.

prompt
String

Uppmaningen.

options
IReadOnlyList<T>

Alternativen.

promptStyle
PromptStyle

Promptstilen.

descriptions
IReadOnlyList<String>

Beskrivningar för varje alternativ.

speak
String

Talet.

Gäller för