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
- ZipIOCentralDirectoryDigitalSignature.cs
- localization.cs
- NavigationWindow.cs
- InlineObject.cs
- CryptoKeySecurity.cs
- OrderedEnumerableRowCollection.cs
- ErrorReporting.cs
- NameSpaceExtractor.cs
- ReplyChannel.cs
- SourceChangedEventArgs.cs
- SelectionProcessor.cs
- Label.cs
- ThrowHelper.cs
- SafeWaitHandle.cs
- SelectedGridItemChangedEvent.cs
- Object.cs
- ACE.cs
- DateTimeValueSerializerContext.cs
- ActivityWithResultValueSerializer.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Message.cs
- PagesChangedEventArgs.cs
- ParserHooks.cs
- SoapTypeAttribute.cs
- _AuthenticationState.cs
- AspNetCompatibilityRequirementsAttribute.cs
- CounterCreationDataCollection.cs
- AlignmentXValidation.cs
- NextPreviousPagerField.cs
- VisualBasicHelper.cs
- EnumerableRowCollection.cs
- BrowserCapabilitiesFactory.cs
- DocumentPaginator.cs
- GregorianCalendar.cs
- DataGridViewSortCompareEventArgs.cs
- LayoutTableCell.cs
- LateBoundBitmapDecoder.cs
- WindowPatternIdentifiers.cs
- TreeIterators.cs
- AsymmetricKeyExchangeDeformatter.cs
- AssemblyCache.cs
- ExpressionTextBox.xaml.cs
- JapaneseCalendar.cs
- FileDialog.cs
- FixedBufferAttribute.cs
- CardSpaceSelector.cs
- RenderContext.cs
- HostUtils.cs
- XmlSerializableServices.cs
- SignatureToken.cs
- OdbcUtils.cs
- Stream.cs
- ProfileInfo.cs
- XmlSchemaAnyAttribute.cs
- TypeKeyValue.cs
- ConfigurationException.cs
- PeerNameRecord.cs
- Size3DConverter.cs
- StyleSelector.cs
- WinFormsSpinner.cs
- Control.cs
- CharacterHit.cs
- NamedPipeProcessProtocolHandler.cs
- DescendantBaseQuery.cs
- ListView.cs
- ContextMarshalException.cs
- ServiceModelExtensionCollectionElement.cs
- ZipPackage.cs
- ComponentChangedEvent.cs
- SoapEnumAttribute.cs
- MD5CryptoServiceProvider.cs
- ProgramPublisher.cs
- DPCustomTypeDescriptor.cs
- HttpCookieCollection.cs
- LayoutInformation.cs
- DynamicRendererThreadManager.cs
- UseAttributeSetsAction.cs
- SystemColors.cs
- LineBreak.cs
- ComplexBindingPropertiesAttribute.cs
- Crc32Helper.cs
- TimeSpanStorage.cs
- TableCell.cs
- CompModSwitches.cs
- Clipboard.cs
- UnsafeNativeMethods.cs
- RangeValidator.cs
- GenericWebPart.cs
- StrokeFIndices.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- MatrixAnimationUsingKeyFrames.cs
- TabPanel.cs
- SqlException.cs
- StylusButtonEventArgs.cs
- InheritanceRules.cs
- ActivationServices.cs
- BuilderPropertyEntry.cs
- DefaultValidator.cs
- SuppressMessageAttribute.cs
- elementinformation.cs