Extensions.AddKeyboardCard<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates buttons from options and add them to the message.
public static void AddKeyboardCard<T> (this Microsoft.Bot.Connector.IMessageActivity message, string text, System.Collections.Generic.IEnumerable<T> options, System.Collections.Generic.IEnumerable<string> descriptions = default);
static member AddKeyboardCard : Microsoft.Bot.Connector.IMessageActivity * string * seq<'T> * seq<string> -> unit
<Extension()>
Public Sub AddKeyboardCard(Of T) (message As IMessageActivity, text As String, options As IEnumerable(Of T), Optional descriptions As IEnumerable(Of String) = Nothing)
Type Parameters
- T
Type of the options.
Parameters
- message
- IMessageActivity
The message that the buttons will be added to.
- options
- IEnumerable<T>
The options that cause generation of buttons.
- descriptions
- IEnumerable<String>
Descriptions for each option.
Remarks
T
should implement ToString().