PromptStyler.Apply Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
Apply(IMessageActivity, String, String) |
Vytvořte styl výzvy a vyplňte Text. |
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String) |
Vytvořte styl výzvy a vyplňte zprávu na PromptStylezákladě . |
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String) |
Apply(IMessageActivity, String, String)
- Zdroj:
- PromptDialog.cs
Vytvořte styl výzvy a vyplňte 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)
Parametry
- message
- IMessageActivity
Zpráva, která bude obsahovat výzvu.
- prompt
- String
Příkazový řádek.
- speak
- String
Mluvte.
Platí pro
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, IReadOnlyList<String>, String)
- Zdroj:
- PromptDialog.cs
Vytvořte styl výzvy a vyplňte zprávu na PromptStylezákladě .
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)
Parametry typu
- T
Typ možností.
Parametry
- message
- IMessageActivity
Zpráva, která bude obsahovat výzvu.
- prompt
- String
Příkazový řádek.
- options
- IReadOnlyList<T>
Možnosti.
- descriptions
- IReadOnlyList<String>
Popisy, které se mají zobrazit pro každou možnost
- speak
- String
Mluvte.
Poznámky
T
by se měly implementovat ToString() , pokud nejsou zadány popisy.
Platí pro
Apply<T>(IMessageActivity, String, IReadOnlyList<T>, PromptStyle, IReadOnlyList<String>, String)
- Zdroj:
- 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)
Parametry typu
- T
Typ možností.
Parametry
- message
- IMessageActivity
Zpráva
- prompt
- String
Příkazový řádek.
- options
- IReadOnlyList<T>
Možnosti.
- promptStyle
- PromptStyle
Styl výzvy.
- descriptions
- IReadOnlyList<String>
Popisy jednotlivých možností
- speak
- String
Mluvte.