Articles → MICROSOFT BOT FRAMEWORK → Template attribute in Bot Framework

Template attribute in Bot Framework






Purpose





Example




Picture showing the default message when the user enters an invalid entry

Click to Enlarge



[Template(TemplateUsage.NotUnderstood, "Age '{0}' is not a valid number format")]
public int Age;




Picture showing the custom message that overrides the default message when the user enters an invalid entry

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, October 23, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250