TemplateManager.CreateTemplateActivity(String, Object) 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 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
An Activity object.