Share via


Channel(TeamsBotInstallation, ChannelInfo) Constructor

Definition

Constructor.

public Channel (Microsoft.TeamsFx.Conversation.TeamsBotInstallation parent, Microsoft.Bot.Schema.Teams.ChannelInfo info);
new Microsoft.TeamsFx.Conversation.Channel : Microsoft.TeamsFx.Conversation.TeamsBotInstallation * Microsoft.Bot.Schema.Teams.ChannelInfo -> Microsoft.TeamsFx.Conversation.Channel
Public Sub New (parent As TeamsBotInstallation, info As ChannelInfo)

Parameters

parent
TeamsBotInstallation

The parent TeamsBotInstallation where this channel is created from.

info
ChannelInfo

Detailed channel information.

Exceptions

Throws if provided parameter is null.

Remarks

It's recommended to get channels from GetChannelsAsync(CancellationToken).

Applies to