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
- DynamicRenderer.cs
- PropertyPushdownHelper.cs
- ConstNode.cs
- Vector3DValueSerializer.cs
- SqlDataSourceEnumerator.cs
- SessionPageStateSection.cs
- TransformerConfigurationWizardBase.cs
- UriTemplateTableMatchCandidate.cs
- StorageFunctionMapping.cs
- XmlSchemaObjectCollection.cs
- _ListenerAsyncResult.cs
- DataRowView.cs
- ListViewDataItem.cs
- BaseAppDomainProtocolHandler.cs
- SHA1.cs
- DataSourceView.cs
- HtmlControl.cs
- TraceSection.cs
- ScrollChrome.cs
- DbReferenceCollection.cs
- SecurityListenerSettingsLifetimeManager.cs
- HandleRef.cs
- StorageAssociationTypeMapping.cs
- ToolStripComboBox.cs
- MonikerBuilder.cs
- MenuItemStyleCollection.cs
- ClientSession.cs
- PeerReferralPolicy.cs
- ExtenderControl.cs
- DataSourceCache.cs
- WebBrowser.cs
- BamlTreeUpdater.cs
- DataGridLength.cs
- DbConnectionStringBuilder.cs
- AnimationStorage.cs
- AspNetHostingPermission.cs
- SystemUnicastIPAddressInformation.cs
- ButtonBaseAdapter.cs
- XmlILModule.cs
- MetadataCollection.cs
- MultiBindingExpression.cs
- XmlReflectionImporter.cs
- WCFBuildProvider.cs
- DesignerOptionService.cs
- AuthenticationModuleElement.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ImpersonationContext.cs
- DropSource.cs
- ISAPIRuntime.cs
- SortableBindingList.cs
- OracleBFile.cs
- datacache.cs
- isolationinterop.cs
- SchemaNames.cs
- EntityEntry.cs
- DataGridRelationshipRow.cs
- InheritedPropertyChangedEventArgs.cs
- CommonProperties.cs
- AttachmentService.cs
- PageSetupDialog.cs
- counter.cs
- XmlSchemaCollection.cs
- FilterableAttribute.cs
- SHA512.cs
- ModelUIElement3D.cs
- TrustLevel.cs
- RightsManagementEncryptedStream.cs
- RuleRef.cs
- ItemList.cs
- SettingsPropertyNotFoundException.cs
- DoubleAnimation.cs
- OletxTransactionHeader.cs
- MemoryMappedView.cs
- TemplateBuilder.cs
- EndpointIdentityExtension.cs
- UriParserTemplates.cs
- ExceptionRoutedEventArgs.cs
- ScriptDescriptor.cs
- initElementDictionary.cs
- ScriptDescriptor.cs
- RequestSecurityTokenForGetBrowserToken.cs
- XsdDateTime.cs
- IntegerValidatorAttribute.cs
- ReachFixedDocumentSerializer.cs
- BindValidationContext.cs
- Processor.cs
- SqlCacheDependencyDatabase.cs
- Int32.cs
- ProfilePropertySettings.cs
- CultureTable.cs
- _SingleItemRequestCache.cs
- TextSpan.cs
- TypedDataSourceCodeGenerator.cs
- WindowsScrollBar.cs
- SQLByte.cs
- AssemblySettingAttributes.cs
- Oid.cs
- ExpressionVisitor.cs
- ChtmlPhoneCallAdapter.cs
- Vector.cs