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
- CacheDependency.cs
- EnvelopedSignatureTransform.cs
- DocumentViewerBaseAutomationPeer.cs
- ExternalException.cs
- UnsafeNativeMethods.cs
- AutoResetEvent.cs
- HttpCachePolicy.cs
- AspCompat.cs
- XmlSerializerAssemblyAttribute.cs
- FilterRepeater.cs
- SHA512Managed.cs
- StylusButton.cs
- DSASignatureDeformatter.cs
- Matrix3DConverter.cs
- MethodAccessException.cs
- CopyAttributesAction.cs
- X509ChainPolicy.cs
- CalendarModeChangedEventArgs.cs
- DigestTraceRecordHelper.cs
- PageParser.cs
- MetadataItemEmitter.cs
- RootNamespaceAttribute.cs
- TrackingMemoryStream.cs
- FontStretch.cs
- LiteralControl.cs
- WindowsStartMenu.cs
- ValueOfAction.cs
- XmlnsDefinitionAttribute.cs
- StringResourceManager.cs
- AsyncOperationManager.cs
- SerializationInfoEnumerator.cs
- FastEncoder.cs
- PartialCachingAttribute.cs
- DateTimeOffsetAdapter.cs
- UInt32Converter.cs
- SamlSecurityTokenAuthenticator.cs
- XmlSchemaSimpleTypeRestriction.cs
- StringStorage.cs
- SubpageParagraph.cs
- RequestTimeoutManager.cs
- DecimalConstantAttribute.cs
- ToolbarAUtomationPeer.cs
- EnumBuilder.cs
- Brushes.cs
- NeedSkipTokenVisitor.cs
- XPathBinder.cs
- AutomationFocusChangedEventArgs.cs
- WinCategoryAttribute.cs
- dsa.cs
- IsolatedStorageFile.cs
- TextTreeRootTextBlock.cs
- XmlSchemaDatatype.cs
- SemanticValue.cs
- HatchBrush.cs
- InArgument.cs
- Parameter.cs
- ErrorWrapper.cs
- ThousandthOfEmRealPoints.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- StrokeNodeOperations.cs
- ProcessHostConfigUtils.cs
- TitleStyle.cs
- NotFiniteNumberException.cs
- ServiceDurableInstance.cs
- TryExpression.cs
- metadatamappinghashervisitor.cs
- DetailsViewModeEventArgs.cs
- TrackingDataItem.cs
- RectAnimation.cs
- BitmapScalingModeValidation.cs
- Style.cs
- EntityReference.cs
- NativeMethods.cs
- XmlLanguageConverter.cs
- Queue.cs
- PersonalizableAttribute.cs
- SQLInt32Storage.cs
- RijndaelManagedTransform.cs
- ControlBuilderAttribute.cs
- Blend.cs
- PngBitmapEncoder.cs
- ChildrenQuery.cs
- NavigationPropertyEmitter.cs
- RelationshipNavigation.cs
- RenderDataDrawingContext.cs
- PlaceHolder.cs
- IItemContainerGenerator.cs
- QilNode.cs
- MouseEvent.cs
- DataGridViewLayoutData.cs
- FilterQuery.cs
- XmlNavigatorStack.cs
- InvalidWMPVersionException.cs
- WebPartVerbCollection.cs
- CqlErrorHelper.cs
- FileVersionInfo.cs
- TextAdaptor.cs
- ReadOnlyTernaryTree.cs
- __ConsoleStream.cs
- CalendarItem.cs