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
- OutputCacheSettings.cs
- Int16Converter.cs
- CircleHotSpot.cs
- HierarchicalDataTemplate.cs
- Panel.cs
- CapacityStreamGeometryContext.cs
- PageParserFilter.cs
- TextEditorCharacters.cs
- MediaSystem.cs
- SmtpDateTime.cs
- DataControlFieldHeaderCell.cs
- ValidationEventArgs.cs
- BuildProviderCollection.cs
- BinHexDecoder.cs
- StickyNoteHelper.cs
- EventLogPropertySelector.cs
- NavigationFailedEventArgs.cs
- PrintPreviewDialog.cs
- HtmlTableCell.cs
- SecurityTokenResolver.cs
- AssemblyResourceLoader.cs
- GradientSpreadMethodValidation.cs
- SafeFileMappingHandle.cs
- ProtocolsConfiguration.cs
- Normalization.cs
- SvcMapFileSerializer.cs
- SafeSecurityHelper.cs
- TextBoxBase.cs
- ScriptReferenceEventArgs.cs
- HtmlElement.cs
- EncoderParameter.cs
- String.cs
- GeometryDrawing.cs
- ComPlusTraceRecord.cs
- ResourceReferenceExpression.cs
- Color.cs
- SmtpMail.cs
- GenericRootAutomationPeer.cs
- DrawingContextWalker.cs
- OutputCacheSection.cs
- StylusPointPropertyInfo.cs
- storepermissionattribute.cs
- Span.cs
- ComNativeDescriptor.cs
- DynamicILGenerator.cs
- SqlClientFactory.cs
- EntityReference.cs
- WebResponse.cs
- ToolBar.cs
- ThrowHelper.cs
- DocumentGridContextMenu.cs
- GifBitmapEncoder.cs
- Win32KeyboardDevice.cs
- MSG.cs
- ImageDrawing.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- JsonDeserializer.cs
- ExtendedPropertyDescriptor.cs
- DecimalConverter.cs
- ObjectSet.cs
- HtmlMeta.cs
- SafeNativeMethods.cs
- DirectionalLight.cs
- DesignerActionList.cs
- DataIdProcessor.cs
- Schema.cs
- RemoteWebConfigurationHostServer.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- StringResourceManager.cs
- WebPartsPersonalization.cs
- ReadOnlyHierarchicalDataSource.cs
- DomNameTable.cs
- ConfigurationElementProperty.cs
- DataSourceXmlSubItemAttribute.cs
- StringUtil.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- CapacityStreamGeometryContext.cs
- ManagementClass.cs
- RtfFormatStack.cs
- TextEffectCollection.cs
- TreeNodeBindingCollection.cs
- XmlAggregates.cs
- HtmlInputSubmit.cs
- XPathParser.cs
- ChannelSettingsElement.cs
- TextTabProperties.cs
- GradientStop.cs
- CreateSequence.cs
- BitmapEffectInput.cs
- ToolStripButton.cs
- FontFamilyValueSerializer.cs
- WebScriptEndpoint.cs
- ScriptResourceInfo.cs
- NonVisualControlAttribute.cs
- NameValuePermission.cs
- Attributes.cs
- IPEndPointCollection.cs
- RichTextBoxAutomationPeer.cs
- MetadataSource.cs
- Splitter.cs