Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ProviderSettingsCollection.cs / 1 / ProviderSettingsCollection.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; using System.Globalization; [ConfigurationCollection(typeof(ProviderSettings))] public sealed class ProviderSettingsCollection : ConfigurationElementCollection { static private ConfigurationPropertyCollection _properties; static ProviderSettingsCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } public ProviderSettingsCollection() : base(StringComparer.OrdinalIgnoreCase) { } protected internal override ConfigurationPropertyCollection Properties { get { return _properties; } } public void Add(ProviderSettings provider) { if (provider != null) { provider.UpdatePropertyCollection(); BaseAdd(provider); } } public void Remove(String name) { BaseRemove(name); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ProviderSettings(); } protected override Object GetElementKey(ConfigurationElement element) { return ((ProviderSettings)element).Name; } public new ProviderSettings this[string key] { get { return (ProviderSettings)BaseGet(key); } } public ProviderSettings this[int index] { get { return (ProviderSettings)BaseGet(index); } set { if (BaseGet(index) != null) BaseRemoveAt(index); BaseAdd(index,value); } } } } // 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; using System.Globalization; [ConfigurationCollection(typeof(ProviderSettings))] public sealed class ProviderSettingsCollection : ConfigurationElementCollection { static private ConfigurationPropertyCollection _properties; static ProviderSettingsCollection() { // Property initialization _properties = new ConfigurationPropertyCollection(); } public ProviderSettingsCollection() : base(StringComparer.OrdinalIgnoreCase) { } protected internal override ConfigurationPropertyCollection Properties { get { return _properties; } } public void Add(ProviderSettings provider) { if (provider != null) { provider.UpdatePropertyCollection(); BaseAdd(provider); } } public void Remove(String name) { BaseRemove(name); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ProviderSettings(); } protected override Object GetElementKey(ConfigurationElement element) { return ((ProviderSettings)element).Name; } public new ProviderSettings this[string key] { get { return (ProviderSettings)BaseGet(key); } } public ProviderSettings this[int index] { get { return (ProviderSettings)BaseGet(index); } set { if (BaseGet(index) != null) BaseRemoveAt(index); BaseAdd(index,value); } } } } // 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
- SrgsRulesCollection.cs
- NegatedConstant.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ColumnResizeUndoUnit.cs
- smtppermission.cs
- Freezable.cs
- EventBuilder.cs
- EntityContainerEntitySet.cs
- SmiMetaData.cs
- HelpEvent.cs
- XmlSchemaSimpleTypeUnion.cs
- PaintValueEventArgs.cs
- DataTablePropertyDescriptor.cs
- TextTreeUndo.cs
- Typography.cs
- SqlCacheDependencyDatabase.cs
- AdornerPresentationContext.cs
- InputLanguageProfileNotifySink.cs
- HandleExceptionArgs.cs
- PropertyValueUIItem.cs
- MethodAccessException.cs
- XmlFormatExtensionAttribute.cs
- PersonalizationAdministration.cs
- RegexWorker.cs
- ChannelServices.cs
- SectionInput.cs
- XslNumber.cs
- ReflectionUtil.cs
- Accessors.cs
- ParseHttpDate.cs
- _SslStream.cs
- DBSchemaTable.cs
- VirtualPathProvider.cs
- FixedHighlight.cs
- SessionStateModule.cs
- MimeMapping.cs
- BooleanAnimationBase.cs
- ContentPlaceHolder.cs
- MatrixTransform3D.cs
- DispatcherTimer.cs
- CommandDevice.cs
- OdbcConnection.cs
- EncoderExceptionFallback.cs
- SmiContext.cs
- TextParaClient.cs
- Formatter.cs
- TypeConverters.cs
- CmsInterop.cs
- CreateUserWizard.cs
- JsonMessageEncoderFactory.cs
- HiddenField.cs
- PageCatalogPartDesigner.cs
- HyperLink.cs
- GetParentChain.cs
- XPathDocument.cs
- GenerateScriptTypeAttribute.cs
- CommandID.cs
- ErrorRuntimeConfig.cs
- Metadata.cs
- TextUtf8RawTextWriter.cs
- BaseUriHelper.cs
- KeyValuePair.cs
- FormsAuthentication.cs
- ToolStripButton.cs
- Int32Converter.cs
- BlurBitmapEffect.cs
- ToolStripItemRenderEventArgs.cs
- ParameterToken.cs
- XmlSchemaProviderAttribute.cs
- DataRowExtensions.cs
- SuppressIldasmAttribute.cs
- SiteOfOriginPart.cs
- WindowsAuthenticationModule.cs
- CodeActivity.cs
- EntityDataSourceStatementEditor.cs
- Mouse.cs
- BitmapEffectInputData.cs
- ToolStripContentPanelDesigner.cs
- ToolboxBitmapAttribute.cs
- StaticSiteMapProvider.cs
- EncryptedKeyHashIdentifierClause.cs
- CheckedListBox.cs
- SqlNamer.cs
- DtdParser.cs
- LocatorBase.cs
- SoapProtocolReflector.cs
- FormViewUpdateEventArgs.cs
- SoapAttributeOverrides.cs
- CqlLexerHelpers.cs
- JpegBitmapDecoder.cs
- IgnoreFlushAndCloseStream.cs
- PriorityQueue.cs
- BuildProvider.cs
- XsltSettings.cs
- GeometryCollection.cs
- TypeEnumerableViewSchema.cs
- UnmanagedMemoryStreamWrapper.cs
- ApplicationInfo.cs
- ConfigUtil.cs
- XmlSchemaObject.cs