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
- ValidatorUtils.cs
- CultureSpecificStringDictionary.cs
- CornerRadius.cs
- HotSpot.cs
- ObjectItemLoadingSessionData.cs
- HTTPNotFoundHandler.cs
- MeasureData.cs
- GridPattern.cs
- DataTableMappingCollection.cs
- UIElementParaClient.cs
- ThicknessAnimationBase.cs
- EdmScalarPropertyAttribute.cs
- SqlVisitor.cs
- PrePrepareMethodAttribute.cs
- XamlPointCollectionSerializer.cs
- TypeContext.cs
- HttpHandlersSection.cs
- COM2Enum.cs
- ListViewItem.cs
- ConstructorNeedsTagAttribute.cs
- XmlSchemaGroup.cs
- MetadataArtifactLoaderResource.cs
- TypeConverterHelper.cs
- FixedSOMLineCollection.cs
- MetadataHelper.cs
- XmlSecureResolver.cs
- RequiredFieldValidator.cs
- InvalidOleVariantTypeException.cs
- ParseNumbers.cs
- ValuePattern.cs
- ModelItemDictionary.cs
- SecurityKeyIdentifier.cs
- StyleBamlRecordReader.cs
- XamlToRtfWriter.cs
- StrokeSerializer.cs
- Translator.cs
- StylusPointProperties.cs
- InfiniteIntConverter.cs
- ObfuscateAssemblyAttribute.cs
- ItemsControl.cs
- PreProcessInputEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- _SecureChannel.cs
- ChtmlTextWriter.cs
- TextRunTypographyProperties.cs
- StringAnimationUsingKeyFrames.cs
- DataGridHeaderBorder.cs
- XmlTextReaderImpl.cs
- ILGen.cs
- MouseGesture.cs
- SemanticBasicElement.cs
- TemplateControlCodeDomTreeGenerator.cs
- SqlReorderer.cs
- ListCollectionView.cs
- InfoCardCryptoHelper.cs
- ResourcesBuildProvider.cs
- PasswordTextNavigator.cs
- XmlParserContext.cs
- EntityStoreSchemaFilterEntry.cs
- _RequestCacheProtocol.cs
- TcpChannelHelper.cs
- BitmapPalette.cs
- ObjRef.cs
- Signature.cs
- PageAsyncTaskManager.cs
- RtfControls.cs
- ForeignKeyConstraint.cs
- X509CertificateCollection.cs
- RegularExpressionValidator.cs
- ObjectDataSourceMethodEditor.cs
- MetadataArtifactLoaderComposite.cs
- DataGridTable.cs
- EmptyElement.cs
- DelimitedListTraceListener.cs
- SafePointer.cs
- PermissionAttributes.cs
- FolderBrowserDialog.cs
- TrackingAnnotationCollection.cs
- MsmqQueue.cs
- HTTPNotFoundHandler.cs
- EntryWrittenEventArgs.cs
- HtmlTableCell.cs
- HandlerMappingMemo.cs
- PeerCollaborationPermission.cs
- OdbcFactory.cs
- ActivityCompletionCallbackWrapper.cs
- ReverseInheritProperty.cs
- SafeProcessHandle.cs
- CustomPopupPlacement.cs
- SspiHelper.cs
- GridViewRow.cs
- GroupQuery.cs
- RangeValidator.cs
- XmlChildEnumerator.cs
- ControlPaint.cs
- PropertyToken.cs
- MetadataCacheItem.cs
- Interfaces.cs
- WebPartConnectVerb.cs
- TrackBarRenderer.cs