MDFT Pro, a well-known training agency, is building a comprehensive student support chatbot using Microsoft Bot Framework Composer to help students with course enrollment, schedule inquiries, and account management. Claire, the Chatbot Architect, is designing a dialog called “StudentDetails” that collects student information during the enrollment process.
The dialog contains a TextInput control that prompts students for their name, and this name data should be temporarily stored during the dialog interaction but automatically cleaned up when the enrollment process is complete to maintain data privacy and system efficiency.
Which variable scope should Claire assign to the “name” property to ensure it gets disposed when the StudentDetails dialog ends?
Choose the correct answer from the options below.
Explanations for each answer: