Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- VectorAnimation.cs
- SQLResource.cs
- Material.cs
- ServicePoint.cs
- CursorConverter.cs
- SynchronizedInputAdaptor.cs
- StringResourceManager.cs
- SQLInt64Storage.cs
- BooleanConverter.cs
- DataControlFieldTypeEditor.cs
- OracleBoolean.cs
- BitmapEffectInput.cs
- SafeThreadHandle.cs
- UserControlParser.cs
- MailSettingsSection.cs
- OleDbDataAdapter.cs
- FrameworkElementAutomationPeer.cs
- SchemaCollectionPreprocessor.cs
- BrowserCapabilitiesCodeGenerator.cs
- controlskin.cs
- GeneralTransformGroup.cs
- Attributes.cs
- Attributes.cs
- xamlnodes.cs
- WindowsStatusBar.cs
- DataGridCellsPresenter.cs
- NoPersistProperty.cs
- StreamUpdate.cs
- CrossSiteScriptingValidation.cs
- GifBitmapEncoder.cs
- Normalization.cs
- PageAsyncTask.cs
- XamlTemplateSerializer.cs
- RegexCode.cs
- XMLSyntaxException.cs
- GenericWebPart.cs
- ClientTargetCollection.cs
- WindowCollection.cs
- ByteStreamMessageUtility.cs
- Literal.cs
- BulletedListDesigner.cs
- RootBrowserWindowProxy.cs
- XmlFormatExtensionPointAttribute.cs
- XmlSchemaCompilationSettings.cs
- TitleStyle.cs
- XmlEncoding.cs
- TextEffect.cs
- GeometryDrawing.cs
- ValidationRuleCollection.cs
- ResourceExpressionEditor.cs
- Pens.cs
- DiscoveryReferences.cs
- Font.cs
- SpecularMaterial.cs
- ISessionStateStore.cs
- PrintPreviewDialog.cs
- ContextProperty.cs
- SelectionRangeConverter.cs
- BitmapEffectDrawingContextWalker.cs
- HwndTarget.cs
- SafeHandles.cs
- Int32Converter.cs
- GroupDescription.cs
- NativeRightsManagementAPIsStructures.cs
- ClientSettingsStore.cs
- CollectionsUtil.cs
- Preprocessor.cs
- CommandDesigner.cs
- ArgIterator.cs
- AggregateNode.cs
- Command.cs
- EntitySetRetriever.cs
- DecimalConstantAttribute.cs
- SessionPageStateSection.cs
- HtmlAnchor.cs
- RectangleGeometry.cs
- XhtmlBasicLiteralTextAdapter.cs
- TransformGroup.cs
- Stylus.cs
- RtfToken.cs
- XmlDigitalSignatureProcessor.cs
- HostProtectionException.cs
- VectorValueSerializer.cs
- PowerModeChangedEventArgs.cs
- Brush.cs
- CodeArrayIndexerExpression.cs
- RC2.cs
- ComPlusThreadInitializer.cs
- AsymmetricSignatureDeformatter.cs
- ThreadSafeList.cs
- CqlWriter.cs
- BinaryCommonClasses.cs
- DataViewManagerListItemTypeDescriptor.cs
- NativeMethodsOther.cs
- GroupBox.cs
- InputDevice.cs
- WindowsSolidBrush.cs
- ValueUtilsSmi.cs
- ServiceAppDomainAssociationProvider.cs
- CompositeClientFormatter.cs