Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConnectionStringsSection.cs / 1305376 / ConnectionStringsSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; public sealed class ConnectionStringsSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propConnectionStrings = new ConfigurationProperty(null, typeof(ConnectionStringSettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); static ConnectionStringsSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propConnectionStrings); } public ConnectionStringsSection() { } protected internal override object GetRuntimeObject() { SetReadOnly(); return this; // return the read only object } protected internal override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ConnectionStringSettingsCollection ConnectionStrings { get { return (ConnectionStringSettingsCollection)base[_propConnectionStrings]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; public sealed class ConnectionStringsSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propConnectionStrings = new ConfigurationProperty(null, typeof(ConnectionStringSettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); static ConnectionStringsSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propConnectionStrings); } public ConnectionStringsSection() { } protected internal override object GetRuntimeObject() { SetReadOnly(); return this; // return the read only object } protected internal override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ConnectionStringSettingsCollection ConnectionStrings { get { return (ConnectionStringSettingsCollection)base[_propConnectionStrings]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnnotationMap.cs
- LinkButton.cs
- SpecialFolderEnumConverter.cs
- StorageBasedPackageProperties.cs
- SectionInput.cs
- BatchWriter.cs
- HtmlInputButton.cs
- ProtectedConfigurationSection.cs
- HWStack.cs
- ControlParameter.cs
- DataAdapter.cs
- XmlNodeChangedEventManager.cs
- PasswordTextContainer.cs
- UIElement.cs
- ThousandthOfEmRealDoubles.cs
- SoapClientMessage.cs
- BindingMAnagerBase.cs
- ActivityBindForm.cs
- MarshalByRefObject.cs
- ThreadAttributes.cs
- HttpProfileGroupBase.cs
- SHA384.cs
- HttpSocketManager.cs
- DataGridViewComboBoxCell.cs
- ReflectionTypeLoadException.cs
- HyperLink.cs
- ProcessModuleCollection.cs
- XsltArgumentList.cs
- IntegerFacetDescriptionElement.cs
- SortDescription.cs
- ToolStripSplitButton.cs
- InspectionWorker.cs
- SecurityRuntime.cs
- BamlBinaryReader.cs
- datacache.cs
- __FastResourceComparer.cs
- SqlDataSourceTableQuery.cs
- BaseProcessor.cs
- StyleCollection.cs
- MatchAttribute.cs
- MinimizableAttributeTypeConverter.cs
- OrthographicCamera.cs
- RepeaterItem.cs
- HttpContext.cs
- CodeDirectionExpression.cs
- StyleSelector.cs
- DetectRunnableInstancesTask.cs
- ConfigurationSettings.cs
- WebPartPersonalization.cs
- ACL.cs
- UnsafeNativeMethods.cs
- X509CertificateCollection.cs
- ImageKeyConverter.cs
- XmlSecureResolver.cs
- OraclePermissionAttribute.cs
- OLEDB_Util.cs
- CodeCompileUnit.cs
- AdobeCFFWrapper.cs
- QueryComponents.cs
- FacetChecker.cs
- ExpressionBuilderCollection.cs
- XmlMtomReader.cs
- OpenTypeLayoutCache.cs
- QueryContinueDragEventArgs.cs
- TerminateSequence.cs
- CompositeFontInfo.cs
- CheckBoxPopupAdapter.cs
- LinkedResourceCollection.cs
- CallTemplateAction.cs
- SmtpException.cs
- EntityDataSource.cs
- WindowsAuthenticationEventArgs.cs
- SafePEFileHandle.cs
- Header.cs
- HostExecutionContextManager.cs
- SystemIPGlobalProperties.cs
- SiteOfOriginContainer.cs
- KeysConverter.cs
- EmptyElement.cs
- RemotingSurrogateSelector.cs
- PageCodeDomTreeGenerator.cs
- AssociationProvider.cs
- XmlQueryRuntime.cs
- MutexSecurity.cs
- PersonalizablePropertyEntry.cs
- VirtualPathExtension.cs
- CachedTypeface.cs
- SecurityUtils.cs
- DataListGeneralPage.cs
- ResumeStoryboard.cs
- ActiveXContainer.cs
- MetaColumn.cs
- DataBinder.cs
- RoleManagerModule.cs
- ContentValidator.cs
- SchemaImporterExtensionsSection.cs
- TextChange.cs
- RowsCopiedEventArgs.cs
- DataGridViewRow.cs
- HostProtectionException.cs