VB .Net Question: Download VB .Net PDF

So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process?

Tweet Share WhatsApp

Answer:

Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval.

Download VB .Net PDF Read All 69 VB .Net Questions
Previous QuestionNext Question
How do you inherit from a class in C#?Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio?