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
- Automation.cs
- TypeContext.cs
- MasterPageCodeDomTreeGenerator.cs
- TreeNodeStyleCollection.cs
- SolidColorBrush.cs
- CalendarDateRange.cs
- PlainXmlWriter.cs
- FontResourceCache.cs
- VariantWrapper.cs
- _SafeNetHandles.cs
- SecurityDescriptor.cs
- FontWeight.cs
- WmfPlaceableFileHeader.cs
- Subtree.cs
- ErrorTableItemStyle.cs
- EdmToObjectNamespaceMap.cs
- WebPartConnectionsConfigureVerb.cs
- EncryptedKeyIdentifierClause.cs
- GraphicsContext.cs
- ModuleElement.cs
- TransformGroup.cs
- HostedAspNetEnvironment.cs
- JoinSymbol.cs
- TextTreeRootTextBlock.cs
- Material.cs
- CharConverter.cs
- CatalogPart.cs
- Size3D.cs
- BindingBase.cs
- XmlDigitalSignatureProcessor.cs
- TextLineResult.cs
- SystemWebCachingSectionGroup.cs
- XmlSchemaElement.cs
- ImageMap.cs
- SecurityPolicySection.cs
- CustomCategoryAttribute.cs
- BaseParser.cs
- Keyboard.cs
- SessionState.cs
- BounceEase.cs
- FixedSOMTableRow.cs
- documentsequencetextpointer.cs
- RuleAttributes.cs
- ManagementObjectCollection.cs
- SqlProvider.cs
- UIElement3D.cs
- UnSafeCharBuffer.cs
- EntityConnection.cs
- UriWriter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebPartsPersonalizationAuthorization.cs
- XmlAggregates.cs
- DrawListViewColumnHeaderEventArgs.cs
- TableRow.cs
- XmlSchemaComplexContent.cs
- MenuItemStyle.cs
- MapPathBasedVirtualPathProvider.cs
- AddInProcess.cs
- PropertyConverter.cs
- SimpleTextLine.cs
- DateTimeConstantAttribute.cs
- RijndaelManagedTransform.cs
- AttributeQuery.cs
- TabletDevice.cs
- XPathAncestorQuery.cs
- IMembershipProvider.cs
- ManipulationPivot.cs
- SystemKeyConverter.cs
- PingReply.cs
- DeferredReference.cs
- Rotation3D.cs
- ConversionContext.cs
- SmiContextFactory.cs
- PreloadedPackages.cs
- ComboBox.cs
- Oid.cs
- StreamAsIStream.cs
- CellQuery.cs
- DomainUpDown.cs
- BitmapMetadataEnumerator.cs
- ObjectItemAttributeAssemblyLoader.cs
- SoapExtensionStream.cs
- CountAggregationOperator.cs
- ProvidersHelper.cs
- ToolStripDropDownDesigner.cs
- TextFormatterImp.cs
- TableProvider.cs
- MobileControlDesigner.cs
- PKCS1MaskGenerationMethod.cs
- OledbConnectionStringbuilder.cs
- XmlSerializerAssemblyAttribute.cs
- XamlReader.cs
- VariableExpressionConverter.cs
- GenericUI.cs
- EditorServiceContext.cs
- QilUnary.cs
- TraceContextEventArgs.cs
- WebServiceTypeData.cs
- UseAttributeSetsAction.cs
- EntityContainerAssociationSetEnd.cs