Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / ConnectionStringsSection.cs / 1 / 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
- SortQueryOperator.cs
- PropertyFilterAttribute.cs
- _HeaderInfoTable.cs
- RegexFCD.cs
- MappingSource.cs
- SendMessageContent.cs
- EditorZoneDesigner.cs
- NamespaceEmitter.cs
- Int32Animation.cs
- MetricEntry.cs
- DesignSurfaceCollection.cs
- AlignmentXValidation.cs
- TransactionFlowAttribute.cs
- SecurityElement.cs
- ReflectionServiceProvider.cs
- DockPattern.cs
- ThumbButtonInfoCollection.cs
- SoapFault.cs
- DocobjHost.cs
- DateRangeEvent.cs
- AnnotationMap.cs
- DescriptionAttribute.cs
- StreamGeometry.cs
- TextLineResult.cs
- ConstraintEnumerator.cs
- listitem.cs
- WebFaultException.cs
- HttpCachePolicyBase.cs
- WindowsFormsHostPropertyMap.cs
- JsonDeserializer.cs
- ServiceContractListItemList.cs
- Pen.cs
- SymmetricAlgorithm.cs
- ReadOnlyDataSourceView.cs
- TimestampInformation.cs
- Action.cs
- XamlSerializationHelper.cs
- QueryInterceptorAttribute.cs
- IriParsingElement.cs
- CacheDependency.cs
- Context.cs
- TextEffect.cs
- VirtualizingStackPanel.cs
- Events.cs
- Gdiplus.cs
- SystemPens.cs
- TrustLevelCollection.cs
- regiisutil.cs
- RuntimeIdentifierPropertyAttribute.cs
- CompressedStack.cs
- StorageScalarPropertyMapping.cs
- XPathNodePointer.cs
- DataGridRelationshipRow.cs
- WebFaultClientMessageInspector.cs
- SmiSettersStream.cs
- AssertFilter.cs
- cache.cs
- ErrorTableItemStyle.cs
- ClientData.cs
- MarkupObject.cs
- LogLogRecord.cs
- DeflateEmulationStream.cs
- QueryExpression.cs
- BinaryReader.cs
- HttpAsyncResult.cs
- SemaphoreSecurity.cs
- DebugInfoExpression.cs
- RequiredArgumentAttribute.cs
- HandlerFactoryWrapper.cs
- ObjectDataSource.cs
- ApplicationTrust.cs
- Bits.cs
- FileDialog.cs
- PolicyManager.cs
- SmiXetterAccessMap.cs
- ScriptRegistrationManager.cs
- StylusButtonEventArgs.cs
- EventProxy.cs
- RequestCacheEntry.cs
- ImageMapEventArgs.cs
- figurelengthconverter.cs
- WebPartDescription.cs
- HandlerWithFactory.cs
- WebServiceParameterData.cs
- Assembly.cs
- SecurityContext.cs
- EventSinkHelperWriter.cs
- MutexSecurity.cs
- TableCellsCollectionEditor.cs
- IdentityReference.cs
- AdCreatedEventArgs.cs
- DesignerToolStripControlHost.cs
- TableItemStyle.cs
- ReachIDocumentPaginatorSerializer.cs
- XPathDocumentIterator.cs
- SqlNodeTypeOperators.cs
- RijndaelManaged.cs
- KeySpline.cs
- input.cs
- WebPartDisplayMode.cs