TemplateManager.CreateTemplateActivity(String, Object) Method

Definition

Creates an Activity object of type equal to "Template" and value equal to a new TemplateOptions object.

public static Microsoft.Bot.Schema.Activity CreateTemplateActivity (string templateId, object data);
static member CreateTemplateActivity : string * obj -> Microsoft.Bot.Schema.Activity
Public Shared Function CreateTemplateActivity (templateId As String, data As Object) As Activity

Parameters

templateId
String

The template Id to use in the new TemplateOptions object.

data
Object

The data to use in the new TemplateOptions object.

Returns

Activity

An Activity object.

Applies to