VB.NET - Explain how to retrieve information from the configuration file at run time.

Explain how to retrieve information from the configuration file at run time.

1. To retrieve information from the configuration file.
2. Create an instance of AppSettingsReader to read the configuration file.
3. Call the GetValue method to read values represented in the configuration file.
4. To add configuration file entries
5. Create elements in the node of the configuration file.
6. Specify a value for the entry and a key in the element.

Example:

Add name space using system.configuration.
Dim val=ConfigurationManager["key"].ToString()
VB.NET - What do you understand by side-by-site execution of assembly?
What do you understand by side-by-site execution of assembly? - Side by side execution refers to running/execution of different versions of the same assembly at the same time on the same machine.......
VB.NET - How do you create a resource-only assembly?
How do you create a resource-only assembly? - One should create a resource only assembly if you need to update the resources frequently without recompiling the whole solution......
VB.NET - Explain how to retrieve resources using ResourceManager class.
Explain how to retrieve resources using ResourceManager class - Use ResourceManager class to retrieve resources that exist in an assembly.......
Post your comment