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
- NumericUpDownAccelerationCollection.cs
- DocumentPageHost.cs
- TimeSpan.cs
- EventLogger.cs
- ObjectTag.cs
- CookieHandler.cs
- XmlMtomWriter.cs
- SecurityIdentifierElement.cs
- ObjectSelectorEditor.cs
- AutomationElement.cs
- SpecialNameAttribute.cs
- NativeActivityFaultContext.cs
- SelfSignedCertificate.cs
- BrowserDefinition.cs
- PropertyValueUIItem.cs
- QilTernary.cs
- XmlWrappingReader.cs
- PanelDesigner.cs
- DbConvert.cs
- TrustManager.cs
- ChtmlCalendarAdapter.cs
- DataGridViewSelectedColumnCollection.cs
- TemplateContainer.cs
- ValidationRuleCollection.cs
- Selection.cs
- ModifierKeysConverter.cs
- DataGridViewMethods.cs
- MemoryRecordBuffer.cs
- LogoValidationException.cs
- SecurityProtocolCorrelationState.cs
- RuleConditionDialog.Designer.cs
- DynamicMetaObjectBinder.cs
- InputScopeAttribute.cs
- Message.cs
- FontClient.cs
- MachineKeySection.cs
- LookupNode.cs
- InlinedLocationReference.cs
- TableItemStyle.cs
- Freezable.cs
- FunctionNode.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SAPICategories.cs
- ConfigurationManagerInternalFactory.cs
- ProfilePropertySettingsCollection.cs
- BamlLocalizationDictionary.cs
- _SafeNetHandles.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- Panel.cs
- CustomLineCap.cs
- RuleSetCollection.cs
- StylusOverProperty.cs
- HtmlTable.cs
- DockPatternIdentifiers.cs
- HtmlContainerControl.cs
- CryptoApi.cs
- TablePatternIdentifiers.cs
- XDRSchema.cs
- BigInt.cs
- DataList.cs
- FormsAuthenticationModule.cs
- shaperfactoryquerycachekey.cs
- X509SubjectKeyIdentifierClause.cs
- ProxyHelper.cs
- TraceContext.cs
- TemplateBamlRecordReader.cs
- Vector3DAnimationBase.cs
- UIElementAutomationPeer.cs
- RectangleGeometry.cs
- ResourceSet.cs
- PeerResolver.cs
- CodeTypeConstructor.cs
- CheckBoxAutomationPeer.cs
- HelpProvider.cs
- GeometryHitTestParameters.cs
- TraceHandlerErrorFormatter.cs
- WindowsEditBox.cs
- XmlSchemaAnnotation.cs
- SiteMapNode.cs
- UpdatePanelControlTrigger.cs
- DataBoundControl.cs
- ArrayElementGridEntry.cs
- ValueQuery.cs
- StatusBarPanelClickEvent.cs
- DataGridViewAccessibleObject.cs
- Rules.cs
- XhtmlMobileTextWriter.cs
- TraceContext.cs
- ToolBar.cs
- DispatcherTimer.cs
- InstallerTypeAttribute.cs
- ButtonFieldBase.cs
- BCryptHashAlgorithm.cs
- DragEventArgs.cs
- ToolStripKeyboardHandlingService.cs
- ChildChangedEventArgs.cs
- StylusTip.cs
- EntryWrittenEventArgs.cs
- WriteTimeStream.cs
- SoapFault.cs