CreateConversationOptionsBuilder.WithTeamsChannelId(String) Method

Definition

Specifies the Microsoft Teams channel ID to associate with the conversation being built.

public Microsoft.Agents.Builder.App.Proactive.CreateConversationOptionsBuilder WithTeamsChannelId(string teamsChannelId);
member this.WithTeamsChannelId : string -> Microsoft.Agents.Builder.App.Proactive.CreateConversationOptionsBuilder
Public Function WithTeamsChannelId (teamsChannelId As String) As CreateConversationOptionsBuilder

Parameters

teamsChannelId
String

The unique identifier of the Microsoft Teams channel to set for the conversation. If null or empty this has no effect.

Returns

The current instance of CreateConversationOptionsBuilder to allow method chaining.

Remarks

This method only applies the Teams channel. For other channels, this method has no effect. Note that this "channel id" is not the same as the Activity.ChannelId values.

More information about teams information can be acquired by using the Teams PowerShell Overview.

Applies to