A Dim myConfig As Configuration = _
ConfigurationManager.OpenExeConfiguration( _
ConfigurationUserLevel.None)
myConfig.ConnectionStrings.ConnectionStrings.Add( _
New ConnectionStringSettings("ConnStr1", strConn))
myConfig.Save()
B Dim myConfig As Configuration = _
ConfigurationManager.OpenExeConfiguration( _
ConfigurationUserLevel.None)
myConfig.ConnectionStrings.ConnectionStrings.Add( _
New ConnectionStringSettings("ConnStr1", strConn))
ConfigurationManager.RefreshSection("ConnectionStrings")
C ConfigurationManager.ConnectionStrings.Add( _
New ConnectionStringSettings("ConnStr1", strConn))
ConfigurationManager.RefreshSection("ConnectionStrings")
D ConfigurationManager.ConnectionStrings.Add(
New ConnectionStringSettings("ConnStr1", strConn))
Dim myConfig As Configuration = _
ConfigurationManager.OpenExeConfiguration( _
ConfigurationUserLevel.None)
myConfig.Save()