Language

BotRequestContext.FromActivity(CoreActivity) Method

Definition

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.

Applies to