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
- StreamSecurityUpgradeInitiatorBase.cs
- Attributes.cs
- SafeWaitHandle.cs
- StrongNameMembershipCondition.cs
- JsonEncodingStreamWrapper.cs
- ServiceNameElement.cs
- TemplatePartAttribute.cs
- CookielessHelper.cs
- LinkUtilities.cs
- BordersPage.cs
- SafeHandles.cs
- MonthCalendarDesigner.cs
- Menu.cs
- ConstraintManager.cs
- DataGridViewColumn.cs
- Range.cs
- ReachFixedDocumentSerializerAsync.cs
- ModelItemExtensions.cs
- PipelineModuleStepContainer.cs
- MachineKeySection.cs
- SingleTagSectionHandler.cs
- SpanIndex.cs
- sqlinternaltransaction.cs
- CustomErrorsSectionWrapper.cs
- TraceXPathNavigator.cs
- HtmlImage.cs
- SecurityBindingElement.cs
- CommentEmitter.cs
- DesignTimeTemplateParser.cs
- BinaryConverter.cs
- SizeConverter.cs
- ClientTarget.cs
- InstallerTypeAttribute.cs
- Terminate.cs
- ObjectQuery.cs
- TextBoxAutoCompleteSourceConverter.cs
- CodeConstructor.cs
- DataService.cs
- WorkflowIdleBehavior.cs
- DataTemplateSelector.cs
- ExpressionWriter.cs
- PathNode.cs
- DesignerTransaction.cs
- DesignerAdRotatorAdapter.cs
- DataControlExtensions.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DockPattern.cs
- ArgIterator.cs
- Int32Storage.cs
- ListMarkerSourceInfo.cs
- DrawingAttributes.cs
- DecoratedNameAttribute.cs
- HttpResponseInternalBase.cs
- SmiContextFactory.cs
- HitTestParameters3D.cs
- ScalarType.cs
- GacUtil.cs
- DynamicQueryableWrapper.cs
- ResourceProperty.cs
- DecodeHelper.cs
- TypeSystem.cs
- CompilerTypeWithParams.cs
- InvokeSchedule.cs
- RootBuilder.cs
- ComProxy.cs
- XmlEntityReference.cs
- TableCellCollection.cs
- AttributeSetAction.cs
- BaseTypeViewSchema.cs
- WebEvents.cs
- TreeWalker.cs
- SecurityManager.cs
- WebPartConnectionsDisconnectVerb.cs
- DeleteIndexBinder.cs
- bindurihelper.cs
- SwitchLevelAttribute.cs
- AssertFilter.cs
- LogicalExpr.cs
- ResourceDictionaryCollection.cs
- Rect3DValueSerializer.cs
- ControlPropertyNameConverter.cs
- PerformanceCountersElement.cs
- DockAndAnchorLayout.cs
- QualifiedCellIdBoolean.cs
- DictionaryItemsCollection.cs
- MergeFailedEvent.cs
- GlobalAllocSafeHandle.cs
- ColorConvertedBitmap.cs
- RouteParametersHelper.cs
- UriParserTemplates.cs
- _HeaderInfoTable.cs
- EdgeModeValidation.cs
- PlatformCulture.cs
- HtmlHead.cs
- DataPointer.cs
- EntitySqlException.cs
- BamlRecords.cs
- OdbcError.cs
- NegationPusher.cs
- RenderOptions.cs