Channel.GetChannelId(ITurnContext) 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 the Channel Id from the current Activity on the Turn Context.
public static string GetChannelId (Microsoft.Bot.Builder.ITurnContext turnContext);
static member GetChannelId : Microsoft.Bot.Builder.ITurnContext -> string
Public Shared Function GetChannelId (turnContext As ITurnContext) As String
Parameters
- turnContext
- ITurnContext
The Turn Context to retrieve the Activity's Channel Id from.
Returns
The Channel Id from the Turn Context's Activity.