PromptStyler.Apply Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| Apply(IMessageActivity, String, String) |
Stijl een prompt en vul de Text. |
| Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String) |
Stijl een prompt en vul het bericht in op basis van PromptStyle. |
| Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String) |
Apply(IMessageActivity, String, String)
- Bron:
- PromptDialog.cs
Stijl een prompt en vul de 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)
Parameters
- message
- IMessageActivity
Het bericht dat de prompt zal bevatten.
- prompt
- String
De prompt.
- speak
- String
Het spreken.
Van toepassing op
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String)
- Bron:
- PromptDialog.cs
Stijl een prompt en vul het bericht in op basis van 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)
Type parameters
- T
Het type opties.
Parameters
- message
- IMessageActivity
Het bericht dat de prompt zal bevatten.
- prompt
- String
De prompt.
- options
- IReadOnlyList<T>
De opties.
- descriptions
- IReadOnlyList<String>
Beschrijvingen om voor elke optie weer te geven.
- speak
- String
Het spreken.
Opmerkingen
T zou moeten implementeren ToString() tenzij er beschrijvingen worden gegeven.
Van toepassing op
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String)
- Bron:
- 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)
Type parameters
- T
Het type opties.
Parameters
- message
- IMessageActivity
Het bericht.
- prompt
- String
De prompt.
- options
- IReadOnlyList<T>
De opties.
- promptStyle
- PromptStyle
De promptstijl.
- descriptions
- IReadOnlyList<String>
Beschrijvingen van elke optie.
- speak
- String
Het spreken.