Question:Systems administrators have configured a connection string in the Machine.config file on every computer. It is identified using the key MySql, and there are no other connection strings. How can you access the connection string value programmatically?
 

A ConfigurationManager.AppSettings("MySql") 

B ConfigurationManager.ConnectionStrings("MySql").ConnectionString 

C ConfigurationManager.ConnectionStrings.ElementInformation.Source 

D ConfigurationManager.AppSettings.GetKey("MySql") 

+ Answer
+ Report
Total Preview: 1200

Copyright © 2024. Powered by Intellect Software Ltd