Articles → MICROSOFT BOT FRAMEWORK → Terms attribute in Microsoft Bot framework

Terms attribute in Microsoft Bot framework






Purpose




Picture showing the message from the chatbot when wrong value is entered by the user and bot is not accepting the value

Click to Enlarge




Using Terms attribute




public enum MaritalStatus { [Terms("^M[a-z]*")]
	Married,
	Unmarried,
	Single
}




Picture showing the message from the chatbot when wrong value is entered by the user and bot is accepting the value

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, October 13, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250