Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- COM2IManagedPerPropertyBrowsingHandler.cs
- ConfigurationConverterBase.cs
- BlurBitmapEffect.cs
- OdbcConnectionOpen.cs
- StatusBarPanelClickEvent.cs
- TextElementAutomationPeer.cs
- _AcceptOverlappedAsyncResult.cs
- OleTxTransaction.cs
- Delegate.cs
- TextServicesContext.cs
- Privilege.cs
- HostSecurityManager.cs
- StorageSetMapping.cs
- AssemblyCache.cs
- TrustVersion.cs
- XmlSchemaSimpleContentRestriction.cs
- ListView.cs
- SafeCertificateContext.cs
- TimeoutTimer.cs
- GroupItem.cs
- Policy.cs
- Serializer.cs
- DbConnectionPoolOptions.cs
- SafeThreadHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- SelectionChangedEventArgs.cs
- DbConnectionPoolGroupProviderInfo.cs
- TypeInfo.cs
- HitTestResult.cs
- CodeExpressionStatement.cs
- GenerateScriptTypeAttribute.cs
- Deflater.cs
- HTMLTagNameToTypeMapper.cs
- ExitEventArgs.cs
- WrappedIUnknown.cs
- Brush.cs
- SmiGettersStream.cs
- ServiceModelActivity.cs
- SqlStream.cs
- SqlNodeAnnotations.cs
- ClientRuntimeConfig.cs
- XsltContext.cs
- DataStreams.cs
- OdbcConnectionString.cs
- ContentElement.cs
- TrackingMemoryStreamFactory.cs
- CheckableControlBaseAdapter.cs
- ChildTable.cs
- UndoManager.cs
- ReturnEventArgs.cs
- ConcurrentBag.cs
- SafeJobHandle.cs
- xmlsaver.cs
- SqlFacetAttribute.cs
- TileBrush.cs
- SByteStorage.cs
- Expander.cs
- HtmlTableRowCollection.cs
- DoubleLinkListEnumerator.cs
- WinFormsComponentEditor.cs
- _Rfc2616CacheValidators.cs
- NumericUpDownAccelerationCollection.cs
- BufferAllocator.cs
- EmbossBitmapEffect.cs
- InternalConfigHost.cs
- ComponentResourceManager.cs
- ReturnValue.cs
- DataObjectPastingEventArgs.cs
- DataGridViewToolTip.cs
- JobStaple.cs
- ModuleElement.cs
- FormatSettings.cs
- ObjectViewQueryResultData.cs
- Blend.cs
- RelationshipEnd.cs
- Variant.cs
- WebPartMenu.cs
- InplaceBitmapMetadataWriter.cs
- DrawListViewSubItemEventArgs.cs
- EmptyControlCollection.cs
- MetafileHeaderEmf.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- RelatedView.cs
- Ops.cs
- ClientType.cs
- PlanCompiler.cs
- CryptoProvider.cs
- future.cs
- SqlDataSourceSelectingEventArgs.cs
- EntityContainerEntitySet.cs
- BufferModesCollection.cs
- DataGridViewComboBoxCell.cs
- DataRecordInfo.cs
- XmlSchemaInfo.cs
- Polyline.cs
- RootProjectionNode.cs
- GridViewDeletedEventArgs.cs
- LogReservationCollection.cs
- TreeNodeBindingCollection.cs
- SystemResourceHost.cs