Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridCommandEventArgs.cs
- TextBreakpoint.cs
- DataGridViewHeaderCell.cs
- HttpDebugHandler.cs
- Win32PrintDialog.cs
- FileEnumerator.cs
- TreeView.cs
- WindowsIdentity.cs
- SkewTransform.cs
- LocationSectionRecord.cs
- BamlTreeNode.cs
- DocumentViewer.cs
- MediaScriptCommandRoutedEventArgs.cs
- FileDialog_Vista.cs
- FixedSOMElement.cs
- WebConvert.cs
- _NestedSingleAsyncResult.cs
- ApplicationInfo.cs
- LineProperties.cs
- SmiSettersStream.cs
- SafeMILHandle.cs
- ImageField.cs
- Activity.cs
- NCryptSafeHandles.cs
- FigureParaClient.cs
- FormatConvertedBitmap.cs
- ProcessModule.cs
- ParserExtension.cs
- ProcessHostConfigUtils.cs
- _ConnectOverlappedAsyncResult.cs
- LocalizableResourceBuilder.cs
- IsolatedStorageException.cs
- StreamWriter.cs
- SemanticResultKey.cs
- XmlSchemaAny.cs
- ChangePassword.cs
- ImplicitInputBrush.cs
- HGlobalSafeHandle.cs
- IPGlobalProperties.cs
- SelectionEditor.cs
- Touch.cs
- TextTreeExtractElementUndoUnit.cs
- QueryServiceConfigHandle.cs
- TracingConnectionListener.cs
- StackSpiller.Temps.cs
- mongolianshape.cs
- login.cs
- XmlUrlResolver.cs
- SequentialOutput.cs
- AssertSection.cs
- Style.cs
- WsatConfiguration.cs
- ToolStrip.cs
- AccessText.cs
- AspProxy.cs
- OrderByBuilder.cs
- ContextMenu.cs
- dataSvcMapFileLoader.cs
- ToolboxItem.cs
- GridViewColumnCollectionChangedEventArgs.cs
- UserMapPath.cs
- PathSegmentCollection.cs
- ArgumentOutOfRangeException.cs
- MethodBuilder.cs
- UseLicense.cs
- SetterBaseCollection.cs
- Utils.cs
- DoubleIndependentAnimationStorage.cs
- AnnotationHelper.cs
- InstanceStoreQueryResult.cs
- PreservationFileWriter.cs
- RoleServiceManager.cs
- TypeForwardedFromAttribute.cs
- Vector3DValueSerializer.cs
- SizeChangedInfo.cs
- OutputScope.cs
- ImageMap.cs
- ServiceHandle.cs
- TraceContext.cs
- externdll.cs
- TextSelectionProcessor.cs
- Hash.cs
- CopyOfAction.cs
- FormClosingEvent.cs
- uribuilder.cs
- BaseDataList.cs
- XmlUtil.cs
- ClockController.cs
- BulletedListEventArgs.cs
- EndEvent.cs
- ImageKeyConverter.cs
- ScriptReferenceBase.cs
- EntityCollection.cs
- CodeStatementCollection.cs
- KeyTimeConverter.cs
- MD5CryptoServiceProvider.cs
- SQLString.cs
- updatecommandorderer.cs
- OptimizedTemplateContent.cs
- EncoderNLS.cs