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
- JournalEntryStack.cs
- XNameConverter.cs
- XmlWrappingWriter.cs
- InProcStateClientManager.cs
- KeyEventArgs.cs
- ByteConverter.cs
- BaseTypeViewSchema.cs
- ClientBuildManagerCallback.cs
- AsynchronousChannelMergeEnumerator.cs
- BridgeDataReader.cs
- EventBuilder.cs
- WsdlBuildProvider.cs
- ItemsPanelTemplate.cs
- AccessText.cs
- grammarelement.cs
- CatalogZone.cs
- CustomErrorsSection.cs
- CompilationRelaxations.cs
- TypeNameConverter.cs
- HelpKeywordAttribute.cs
- AspNetHostingPermission.cs
- ResizeGrip.cs
- IDReferencePropertyAttribute.cs
- DragCompletedEventArgs.cs
- DivideByZeroException.cs
- DataProviderNameConverter.cs
- DATA_BLOB.cs
- BaseServiceProvider.cs
- BooleanExpr.cs
- CodeAttributeDeclaration.cs
- OutputCacheModule.cs
- EnumConverter.cs
- OrderablePartitioner.cs
- WebControl.cs
- SqlNotificationEventArgs.cs
- PtsHelper.cs
- OdbcDataReader.cs
- DateTime.cs
- DataList.cs
- SafeEventLogWriteHandle.cs
- ListSortDescription.cs
- DoubleKeyFrameCollection.cs
- RIPEMD160.cs
- StringBuilder.cs
- WSFederationHttpBindingElement.cs
- OracleCommandBuilder.cs
- MetabaseSettingsIis7.cs
- HtmlTableRowCollection.cs
- MoveSizeWinEventHandler.cs
- SpeechEvent.cs
- ListBoxItemAutomationPeer.cs
- XamlGridLengthSerializer.cs
- UrlMappingsSection.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewRow.cs
- RectangleGeometry.cs
- WindowsSolidBrush.cs
- Scene3D.cs
- LeaseManager.cs
- StringPropertyBuilder.cs
- SerialReceived.cs
- MethodSet.cs
- Queue.cs
- ResourcesChangeInfo.cs
- OdbcErrorCollection.cs
- LinearGradientBrush.cs
- EntityKey.cs
- ArgumentsParser.cs
- DeclarativeExpressionConditionDeclaration.cs
- XmlChoiceIdentifierAttribute.cs
- DataSetFieldSchema.cs
- SoapException.cs
- DataServiceQueryException.cs
- GatewayDefinition.cs
- UnsafeNativeMethods.cs
- EmptyReadOnlyDictionaryInternal.cs
- EventSourceCreationData.cs
- Grammar.cs
- ManipulationDelta.cs
- ListBox.cs
- COAUTHIDENTITY.cs
- BaseDataBoundControl.cs
- XmlIlVisitor.cs
- XmlReflectionMember.cs
- DocumentXmlWriter.cs
- PlaceHolder.cs
- PeerNameRecordCollection.cs
- IRCollection.cs
- SpecularMaterial.cs
- TypeViewSchema.cs
- SQLInt32.cs
- XmlBaseReader.cs
- TextWriterEngine.cs
- SyndicationItem.cs
- DigitShape.cs
- SqlTypeConverter.cs
- WorkflowItemPresenter.cs
- SHA256CryptoServiceProvider.cs
- CheckableControlBaseAdapter.cs
- ContainerParagraph.cs