TemplateManager.RenderTemplate(ITurnContext, String, 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.
Render the template.
public System.Threading.Tasks.Task<Microsoft.Bot.Schema.Activity> RenderTemplate (Microsoft.Bot.Builder.ITurnContext turnContext, string language, string templateId, object data = default);
member this.RenderTemplate : Microsoft.Bot.Builder.ITurnContext * string * string * obj -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Activity>
Public Function RenderTemplate (turnContext As ITurnContext, language As String, templateId As String, Optional data As Object = Nothing) As Task(Of Activity)
Parameters
- turnContext
- ITurnContext
Context for the current turn of conversation.
- language
- String
Template language.
- templateId
- String
The id of the template.
- data
- Object
Data to render the template with.
Returns
Task.