CommandBot.RegisterCommands(IList<ITeamsCommandHandler>) 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.
Registers a set of commands to the command bot.
public void RegisterCommands (System.Collections.Generic.IList<Microsoft.TeamsFx.Conversation.ITeamsCommandHandler> commandHandlers);
member this.RegisterCommands : System.Collections.Generic.IList<Microsoft.TeamsFx.Conversation.ITeamsCommandHandler> -> unit
Public Sub RegisterCommands (commandHandlers As IList(Of ITeamsCommandHandler))
Parameters
- commandHandlers
- IList<ITeamsCommandHandler>
A list of command handlers to be registered to the bot.
Exceptions
commandHandlers
is null or empty.