BotRequestContext.FromActivity(CoreActivity) 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.
Builds context for an outbound activity: the bot is the sender, so the agentic identity and bot app id are both derived from From.
public static Microsoft.Teams.Core.Http.BotRequestContext? FromActivity(Microsoft.Teams.Core.Schema.CoreActivity? activity);
static member FromActivity : Microsoft.Teams.Core.Schema.CoreActivity -> Microsoft.Teams.Core.Http.BotRequestContext
Public Shared Function FromActivity (activity As CoreActivity) As BotRequestContext
Parameters
- activity
- CoreActivity
The outbound activity, or null.
Returns
The context, or null when nothing could be derived.