Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- EntityDataSourceState.cs
- SQLBinary.cs
- BrowserCapabilitiesFactory35.cs
- ToolStripComboBox.cs
- SortableBindingList.cs
- TextServicesLoader.cs
- ChooseAction.cs
- Action.cs
- FeatureSupport.cs
- AdapterDictionary.cs
- ClickablePoint.cs
- DoubleKeyFrameCollection.cs
- CacheVirtualItemsEvent.cs
- HMACMD5.cs
- AnimationStorage.cs
- FontResourceCache.cs
- SqlClientPermission.cs
- XmlDataLoader.cs
- RectKeyFrameCollection.cs
- ProfileProvider.cs
- UidManager.cs
- WindowsScrollBarBits.cs
- DirectoryInfo.cs
- ProtocolViolationException.cs
- EffectiveValueEntry.cs
- LocalizabilityAttribute.cs
- Typeface.cs
- PasswordPropertyTextAttribute.cs
- Composition.cs
- XPathParser.cs
- ApplicationSecurityInfo.cs
- _Win32.cs
- FixedDSBuilder.cs
- Effect.cs
- WebPartConnectionsCloseVerb.cs
- DesigntimeLicenseContextSerializer.cs
- PrimitiveDataContract.cs
- OdbcErrorCollection.cs
- DockingAttribute.cs
- ChangeBlockUndoRecord.cs
- XmlSerializerImportOptions.cs
- DocumentXmlWriter.cs
- StartUpEventArgs.cs
- PropVariant.cs
- TextDpi.cs
- DbConnectionPool.cs
- QueryContinueDragEventArgs.cs
- ThemeDictionaryExtension.cs
- OrderedDictionary.cs
- WorkflowInstanceQuery.cs
- ToolStripRenderEventArgs.cs
- NopReturnReader.cs
- MetafileHeader.cs
- RowsCopiedEventArgs.cs
- SqlExpressionNullability.cs
- RawStylusInputCustomDataList.cs
- HttpHandlerAction.cs
- Win32.cs
- TypeEnumerableViewSchema.cs
- ObjectDesignerDataSourceView.cs
- LateBoundBitmapDecoder.cs
- Completion.cs
- ValidatorCollection.cs
- DataSourceView.cs
- ChangeBlockUndoRecord.cs
- Zone.cs
- HttpContextServiceHost.cs
- TripleDES.cs
- MLangCodePageEncoding.cs
- AmbientValueAttribute.cs
- SqlCaseSimplifier.cs
- WebPartCloseVerb.cs
- DeadCharTextComposition.cs
- QilXmlReader.cs
- DocComment.cs
- JulianCalendar.cs
- PresentationTraceSources.cs
- RuntimeArgumentHandle.cs
- SessionEndingCancelEventArgs.cs
- UserThread.cs
- EmptyElement.cs
- RowToParametersTransformer.cs
- TextParentUndoUnit.cs
- RegisteredDisposeScript.cs
- XmlValidatingReader.cs
- PrincipalPermission.cs
- EdmTypeAttribute.cs
- SqlMethodCallConverter.cs
- DataGrid.cs
- DataGridViewImageCell.cs
- _Win32.cs
- LayoutEditorPart.cs
- ImageAutomationPeer.cs
- SQLCharsStorage.cs
- RuntimeVariableList.cs
- Avt.cs
- HtmlTableCell.cs
- ExpressionPrefixAttribute.cs
- SqlTrackingQuery.cs
- XmlWriter.cs