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
- hresults.cs
- Point3DAnimation.cs
- CrossContextChannel.cs
- MetadataException.cs
- WebRequestModulesSection.cs
- WebPartCatalogCloseVerb.cs
- ToolStripRendererSwitcher.cs
- Compiler.cs
- CoreSwitches.cs
- XslAstAnalyzer.cs
- System.Data_BID.cs
- StructuredTypeEmitter.cs
- UserMapPath.cs
- SemaphoreSecurity.cs
- JavascriptCallbackBehaviorAttribute.cs
- UnorderedHashRepartitionStream.cs
- WindowsTab.cs
- TextTreeNode.cs
- SQLInt16.cs
- Substitution.cs
- ScriptServiceAttribute.cs
- XomlCompilerHelpers.cs
- DataSpaceManager.cs
- MouseGesture.cs
- DrawingImage.cs
- InitializerFacet.cs
- Translator.cs
- CompensatableTransactionScopeActivity.cs
- ImageFormat.cs
- SocketManager.cs
- Rights.cs
- HandleRef.cs
- SafeLocalMemHandle.cs
- XslNumber.cs
- Thickness.cs
- MasterPageCodeDomTreeGenerator.cs
- ViewUtilities.cs
- SqlLiftIndependentRowExpressions.cs
- DatePickerTextBox.cs
- EnumerableRowCollectionExtensions.cs
- DTCTransactionManager.cs
- DCSafeHandle.cs
- RenderDataDrawingContext.cs
- RelatedView.cs
- FlowLayout.cs
- SystemFonts.cs
- CodeSnippetStatement.cs
- Group.cs
- TypedAsyncResult.cs
- SmtpCommands.cs
- GZipStream.cs
- XPathConvert.cs
- XamlTypeMapperSchemaContext.cs
- CodeCompiler.cs
- FileStream.cs
- ResolveNameEventArgs.cs
- UInt32Converter.cs
- oledbmetadatacollectionnames.cs
- EntityDataSourceSelectedEventArgs.cs
- HierarchicalDataSourceControl.cs
- StickyNote.cs
- Util.cs
- TextEndOfLine.cs
- SafeRightsManagementSessionHandle.cs
- ResetableIterator.cs
- ThousandthOfEmRealDoubles.cs
- SystemWebCachingSectionGroup.cs
- InternalResources.cs
- DataListCommandEventArgs.cs
- ExtractedStateEntry.cs
- TypeInformation.cs
- JsonUriDataContract.cs
- ItemsPresenter.cs
- ReachUIElementCollectionSerializer.cs
- SID.cs
- SqlDependencyUtils.cs
- DataServiceQueryException.cs
- mansign.cs
- ProviderUtil.cs
- SafeNativeMethods.cs
- InvalidateEvent.cs
- MouseWheelEventArgs.cs
- XmlObjectSerializer.cs
- PolyLineSegment.cs
- SystemFonts.cs
- OdbcPermission.cs
- VirtualPathProvider.cs
- HandlerBase.cs
- NameTable.cs
- UTF8Encoding.cs
- ObjectDataSourceFilteringEventArgs.cs
- CustomError.cs
- DataSourceNameHandler.cs
- GeometryConverter.cs
- SmtpReplyReader.cs
- EventListener.cs
- UITypeEditor.cs
- StreamUpgradeAcceptor.cs
- XmlSchemaNotation.cs
- BinHexDecoder.cs