| File: System\Configuration\ConnectionStringsSection.cs | Web Access |
| Project: src\runtime\src\libraries\System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj (System.Configuration.ConfigurationManager) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. 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 => (ConnectionStringSettingsCollection)base[s_propConnectionStrings]; protected internal override object GetRuntimeObject() { SetReadOnly(); return this; // return the read only object } } }