Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / ConnectionManagementElementCollection.cs / 1305376 / ConnectionManagementElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(ConnectionManagementElement))] public sealed class ConnectionManagementElementCollection : ConfigurationElementCollection { public ConnectionManagementElementCollection() { } public ConnectionManagementElement this[int index] { get { return (ConnectionManagementElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new ConnectionManagementElement this[string name] { get { return (ConnectionManagementElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(ConnectionManagementElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new ConnectionManagementElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((ConnectionManagementElement)element).Key; } public int IndexOf(ConnectionManagementElement element) { return BaseIndexOf(element); } public void Remove(ConnectionManagementElement element) { if (element == null) throw new ArgumentNullException("element"); BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // 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
- CursorConverter.cs
- NamespaceList.cs
- DecryptedHeader.cs
- WmlCommandAdapter.cs
- ErrorWrapper.cs
- Convert.cs
- SerializationInfo.cs
- EnumType.cs
- WebPartEditorApplyVerb.cs
- CapabilitiesRule.cs
- LabelLiteral.cs
- StrongNamePublicKeyBlob.cs
- StateInitialization.cs
- TraceProvider.cs
- Attributes.cs
- DesignRelationCollection.cs
- RecognizerInfo.cs
- MethodExpression.cs
- XmlSchemas.cs
- ScriptResourceAttribute.cs
- XhtmlBasicLabelAdapter.cs
- SqlDataSourceFilteringEventArgs.cs
- NativeMethods.cs
- OrderedDictionary.cs
- PreloadedPackages.cs
- CacheRequest.cs
- RenderContext.cs
- Model3DCollection.cs
- ByteRangeDownloader.cs
- Highlights.cs
- UniqueIdentifierService.cs
- DataGridViewDataErrorEventArgs.cs
- InfoCardRSACryptoProvider.cs
- XmlNodeWriter.cs
- DataSetFieldSchema.cs
- WebPartMovingEventArgs.cs
- AdvancedBindingEditor.cs
- DataSourceXmlClassAttribute.cs
- BrowserTree.cs
- ExecutionContext.cs
- SoundPlayerAction.cs
- WebPartConnectVerb.cs
- CachedFontFamily.cs
- Context.cs
- TextSelection.cs
- ObjectDataSourceStatusEventArgs.cs
- KnownIds.cs
- SurrogateEncoder.cs
- StrongNameUtility.cs
- messageonlyhwndwrapper.cs
- LayoutInformation.cs
- NameTable.cs
- CustomActivityDesigner.cs
- ApplicationServiceManager.cs
- EdmTypeAttribute.cs
- CodeSubDirectoriesCollection.cs
- XmlILStorageConverter.cs
- ButtonChrome.cs
- KeyPullup.cs
- XPathNavigatorReader.cs
- metadatamappinghashervisitor.cs
- PropertyEmitter.cs
- DbParameterCollectionHelper.cs
- ScriptComponentDescriptor.cs
- FontFamilyConverter.cs
- DiscoveryEndpoint.cs
- ServiceDescription.cs
- DiagnosticTrace.cs
- UpdatePanelTriggerCollection.cs
- BypassElement.cs
- GridViewRow.cs
- ReadWriteSpinLock.cs
- ContentWrapperAttribute.cs
- XPathNodeIterator.cs
- SQLBoolean.cs
- ElementFactory.cs
- CellLabel.cs
- CurrencyWrapper.cs
- storagemappingitemcollection.viewdictionary.cs
- SystemFonts.cs
- PageWrapper.cs
- QilSortKey.cs
- SessionStateContainer.cs
- TextTabProperties.cs
- RijndaelCryptoServiceProvider.cs
- RawStylusActions.cs
- RefreshEventArgs.cs
- DependsOnAttribute.cs
- GrammarBuilder.cs
- Base64Encoder.cs
- MemberPathMap.cs
- SqlDataRecord.cs
- OleDbError.cs
- SyndicationCategory.cs
- HealthMonitoringSection.cs
- ReflectionTypeLoadException.cs
- FileDetails.cs
- WindowsGrip.cs
- LineSegment.cs
- Style.cs