Language

Plan.CreateFromContext<TActivity>(Context<TActivity>) Method

Definition

Creates a standalone helper bound to the incoming activity's own ID.

public static Microsoft.Teams.Apps.Plan CreateFromContext<TActivity>(Microsoft.Teams.Apps.Context<TActivity> context) where TActivity : Microsoft.Teams.Apps.Schema.TeamsActivity;
static member CreateFromContext : Microsoft.Teams.Apps.Context<'Activity (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)> -> Microsoft.Teams.Apps.Plan (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)
Public Shared Function CreateFromContext(Of TActivity As TeamsActivity) (context As Context(Of TActivity)) As Plan

Type Parameters

TActivity

Parameters

Returns

Remarks

In a chat thread, a standalone CompleteAsync is posted to the reply chain, as ctx.send does. Typing updates, completions in a channel, and prompts outside a thread use the conversation.

Applies to