DictionaryRenderer.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.
Renders a template to an activity or string.
public System.Threading.Tasks.Task<object> RenderTemplate (Microsoft.Bot.Builder.ITurnContext turnContext, string language, string templateId, object data);
abstract member RenderTemplate : Microsoft.Bot.Builder.ITurnContext * string * string * obj -> System.Threading.Tasks.Task<obj>
override this.RenderTemplate : Microsoft.Bot.Builder.ITurnContext * string * string * obj -> System.Threading.Tasks.Task<obj>
Public Function RenderTemplate (turnContext As ITurnContext, language As String, templateId As String, data As Object) As Task(Of Object)
Parameters
- turnContext
- ITurnContext
The turn context.
- language
- String
The language to render.
- templateId
- String
The template to render.
- data
- Object
The data object to use to render.
Returns
Task.