TeamsBotInstallation.GetChannelsAsync(CancellationToken) 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.
Get channels from this bot installation.
public System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.Channel[]> GetChannelsAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetChannelsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamsFx.Conversation.Channel[]>
Public Function GetChannelsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Channel())
Parameters
- cancellationToken
- CancellationToken
The cancellation token.
Returns
An array of channels if bot is installed into a team, otherwise returns an empty array.