PromptStyler.Apply Methode

Definition

Überlädt

Apply(IMessageActivity, String, String)

Quelle:
PromptDialog.cs

Formatiere einen Prompt und fülle das 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)

Parameter

message
IMessageActivity

Die Nachricht, die den Prompt enthält.

prompt
String

Die Eingabeaufforderung.

speak
String

Das Sprechen.

Gilt für:

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

Quelle:
PromptDialog.cs

Formatiere einen Prompt und fülle die Nachricht basierend auf PromptStyleaus.

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)

Typparameter

T

Die Art der Optionen.

Parameter

message
IMessageActivity

Die Nachricht, die den Prompt enthält.

prompt
String

Die Eingabeaufforderung.

options
IReadOnlyList<T>

Die Optionen.

descriptions
IReadOnlyList<String>

Beschreibungen, die für jede Option angezeigt werden.

speak
String

Das Sprechen.

Hinweise

T sollte implementiert ToString() werden, sofern keine Beschreibungen bereitgestellt werden.

Gilt für:

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

Quelle:
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)

Typparameter

T

Die Art der Optionen.

Parameter

message
IMessageActivity

Die Nachricht.

prompt
String

Die Eingabeaufforderung.

options
IReadOnlyList<T>

Die Optionen.

promptStyle
PromptStyle

Der Prompt-Stil.

descriptions
IReadOnlyList<String>

Beschreibungen für jede Option.

speak
String

Das Sprechen.

Gilt für: