Plan.CreateFromContext<TActivity>(Context<TActivity>) 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.
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
- context
- Context<TActivity>
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.