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
- DetailsViewCommandEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- ListBox.cs
- SqlCacheDependency.cs
- OdbcConnection.cs
- GenericAuthenticationEventArgs.cs
- EntitySqlQueryState.cs
- XmlTextEncoder.cs
- CompareValidator.cs
- AutomationElement.cs
- RuntimeArgumentHandle.cs
- MemberProjectedSlot.cs
- PropertyInformationCollection.cs
- WebPartTransformerAttribute.cs
- MessageContractImporter.cs
- MenuAdapter.cs
- CodeTypeParameterCollection.cs
- WMIInterop.cs
- CookieProtection.cs
- StickyNoteAnnotations.cs
- ChannelHandler.cs
- UnmanagedMarshal.cs
- FontCollection.cs
- VisualStyleTypesAndProperties.cs
- FilteredAttributeCollection.cs
- SrgsSubset.cs
- ContextMenuAutomationPeer.cs
- UrlEncodedParameterWriter.cs
- SupportsEventValidationAttribute.cs
- SafeUserTokenHandle.cs
- Sequence.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DocumentApplicationJournalEntryEventArgs.cs
- LayoutTable.cs
- IPipelineRuntime.cs
- SoapReflectionImporter.cs
- SspiHelper.cs
- XmlSchemaImport.cs
- CardSpacePolicyElement.cs
- UserUseLicenseDictionaryLoader.cs
- ITextView.cs
- StreamInfo.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlTextReaderImpl.cs
- SweepDirectionValidation.cs
- TextTabProperties.cs
- InheritanceContextHelper.cs
- _RequestCacheProtocol.cs
- DoWorkEventArgs.cs
- WindowsTitleBar.cs
- FixedFlowMap.cs
- CodeDirectoryCompiler.cs
- DetailsViewInsertedEventArgs.cs
- UrlAuthFailedErrorFormatter.cs
- Knowncolors.cs
- SqlParameter.cs
- ContentPropertyAttribute.cs
- Style.cs
- basecomparevalidator.cs
- StopRoutingHandler.cs
- HttpWebRequest.cs
- DataBoundControl.cs
- XPathPatternParser.cs
- CacheHelper.cs
- LineServicesRun.cs
- TableRowGroup.cs
- ListenerElementsCollection.cs
- WebBrowserNavigatedEventHandler.cs
- JsonEnumDataContract.cs
- ResourcesGenerator.cs
- WebServiceResponse.cs
- EnumType.cs
- GlyphCache.cs
- PresentationTraceSources.cs
- ListGeneralPage.cs
- NTAccount.cs
- WindowsToolbarAsMenu.cs
- ColumnHeaderConverter.cs
- FileStream.cs
- HitTestParameters3D.cs
- SqlCacheDependencyDatabase.cs
- WindowsImpersonationContext.cs
- InputDevice.cs
- ConnectionPointCookie.cs
- DataConnectionHelper.cs
- InputBindingCollection.cs
- localization.cs
- SqlRewriteScalarSubqueries.cs
- AttributedMetaModel.cs
- WorkflowWebHostingModule.cs
- OutputCacheSettings.cs
- SchemaImporter.cs
- TableNameAttribute.cs
- UpdatePanel.cs
- PriorityQueue.cs
- XmlNullResolver.cs
- ComponentDispatcherThread.cs
- BrushConverter.cs
- DbParameterCollectionHelper.cs
- AttachedPropertyBrowsableAttribute.cs