<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-preview.7.21377.19" />

ConnectionStringsSection

Provides programmatic access to the connection strings configuration-file section.
namespace System.Configuration { public sealed class ConnectionStringsSection : ConfigurationSection { private static readonly ConfigurationProperty s_propConnectionStrings = new ConfigurationProperty(null, typeof(ConnectionStringSettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); private static readonly ConfigurationPropertyCollection s_properties = new ConfigurationPropertyCollection { s_propConnectionStrings }; protected internal override ConfigurationPropertyCollection Properties => s_properties; [ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ConnectionStringSettingsCollection ConnectionStrings { get { return (ConnectionStringSettingsCollection)base[s_propConnectionStrings]; } } protected internal override object GetRuntimeObject() { SetReadOnly(); return this; } } }