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
- SocketAddress.cs
- FillBehavior.cs
- PolyLineSegment.cs
- TextRangeProviderWrapper.cs
- FastPropertyAccessor.cs
- LocalizabilityAttribute.cs
- Exceptions.cs
- Matrix.cs
- ConfigXmlText.cs
- XmlSerializationReader.cs
- DataSetMappper.cs
- StatusBarAutomationPeer.cs
- DependencyPropertyChangedEventArgs.cs
- CodeCompileUnit.cs
- SchemaMerger.cs
- TextServicesLoader.cs
- NameTable.cs
- ProfileSettings.cs
- SpeechAudioFormatInfo.cs
- AppSecurityManager.cs
- SmiSettersStream.cs
- TimeSpanConverter.cs
- TabPanel.cs
- AddIn.cs
- DataControlFieldCollection.cs
- Divide.cs
- DataPagerField.cs
- panel.cs
- CodeMethodMap.cs
- Util.cs
- ListBindableAttribute.cs
- ThemeDirectoryCompiler.cs
- ChildDocumentBlock.cs
- Icon.cs
- DesignerTransaction.cs
- ControlPropertyNameConverter.cs
- ByteFacetDescriptionElement.cs
- FixedHighlight.cs
- wmiutil.cs
- UIntPtr.cs
- BaseUriHelper.cs
- IDQuery.cs
- KoreanCalendar.cs
- XamlParser.cs
- AssertValidation.cs
- DataGridViewCellStyle.cs
- Environment.cs
- DataGridViewElement.cs
- ResourceProperty.cs
- SharedDp.cs
- HtmlImage.cs
- BitmapCodecInfo.cs
- autovalidator.cs
- RepeatButton.cs
- AggregateNode.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TypeSystem.cs
- WmlObjectListAdapter.cs
- RuntimeIdentifierPropertyAttribute.cs
- TypeSemantics.cs
- HierarchicalDataSourceControl.cs
- ContainerParaClient.cs
- GridViewSelectEventArgs.cs
- ArglessEventHandlerProxy.cs
- BinaryFormatter.cs
- ObjectNotFoundException.cs
- SqlDataSourceSelectingEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- WebPartCloseVerb.cs
- PtsContext.cs
- MobileTemplatedControlDesigner.cs
- ValidationResults.cs
- MyContact.cs
- TraceListener.cs
- PeerInvitationResponse.cs
- SqlTopReducer.cs
- ProxyGenerationError.cs
- RemoteWebConfigurationHostStream.cs
- ExclusiveCanonicalizationTransform.cs
- GACIdentityPermission.cs
- EventEntry.cs
- GZipDecoder.cs
- Activation.cs
- EntityDataSourceContextCreatedEventArgs.cs
- TreeNodeCollectionEditorDialog.cs
- HuffModule.cs
- CancellationState.cs
- LineMetrics.cs
- HtmlForm.cs
- DesignerAutoFormatStyle.cs
- SerializableTypeCodeDomSerializer.cs
- TextBoxBase.cs
- IntSecurity.cs
- TextRange.cs
- TcpTransportElement.cs
- PersonalizationProviderHelper.cs
- LinearGradientBrush.cs
- ScaleTransform.cs
- ExpressionBindingCollection.cs
- PropertyMappingExceptionEventArgs.cs