Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / ConnectionManagementElementCollection.cs / 1 / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebBrowserNavigatingEventHandler.cs
- baseaxisquery.cs
- ScriptDescriptor.cs
- MouseGesture.cs
- Property.cs
- HttpProcessUtility.cs
- ResourceCategoryAttribute.cs
- MetabaseServerConfig.cs
- RelatedCurrencyManager.cs
- SecurityTimestamp.cs
- GPPOINTF.cs
- baseaxisquery.cs
- WmfPlaceableFileHeader.cs
- Int16.cs
- StrongNameKeyPair.cs
- Part.cs
- HtmlControlPersistable.cs
- Quad.cs
- IPPacketInformation.cs
- ProcessThreadCollection.cs
- ResourceDefaultValueAttribute.cs
- ColumnHeaderConverter.cs
- GraphicsContext.cs
- WebServiceMethodData.cs
- HashCryptoHandle.cs
- WebConfigurationFileMap.cs
- MetadataItemCollectionFactory.cs
- ThreadStartException.cs
- DataContractSerializerSection.cs
- Deserializer.cs
- DocumentXPathNavigator.cs
- SettingsProviderCollection.cs
- RadioButtonFlatAdapter.cs
- ObjectItemNoOpAssemblyLoader.cs
- SqlNotificationRequest.cs
- RouteTable.cs
- Point3DKeyFrameCollection.cs
- Cursor.cs
- CompositeDataBoundControl.cs
- TypeInitializationException.cs
- WaitHandleCannotBeOpenedException.cs
- NoneExcludedImageIndexConverter.cs
- SafeViewOfFileHandle.cs
- RectAnimationUsingKeyFrames.cs
- Set.cs
- ColorConverter.cs
- ComponentChangedEvent.cs
- RoutedEventHandlerInfo.cs
- MemoryRecordBuffer.cs
- HMACRIPEMD160.cs
- CollectionBuilder.cs
- PropertyManager.cs
- MessageHeaders.cs
- SqlAliasesReferenced.cs
- MemberJoinTreeNode.cs
- TextBounds.cs
- DescendentsWalkerBase.cs
- ThicknessAnimationBase.cs
- TypeUtil.cs
- SpoolingTaskBase.cs
- ByteFacetDescriptionElement.cs
- Type.cs
- SoapCommonClasses.cs
- SqlDataAdapter.cs
- SoapExtensionImporter.cs
- TextShapeableCharacters.cs
- TextServicesProperty.cs
- FormatConvertedBitmap.cs
- XmlTypeAttribute.cs
- WorkflowRuntimeServiceElement.cs
- UndirectedGraph.cs
- StagingAreaInputItem.cs
- ConnectionOrientedTransportBindingElement.cs
- Paragraph.cs
- Vector3dCollection.cs
- KeyEvent.cs
- DesignerDataRelationship.cs
- ColumnClickEvent.cs
- COMException.cs
- DrawingAttributes.cs
- TextModifier.cs
- ListBindingHelper.cs
- Crc32Helper.cs
- PageContent.cs
- XmlQueryCardinality.cs
- RsaSecurityToken.cs
- SmiContext.cs
- DataSourceListEditor.cs
- PointConverter.cs
- CustomActivityDesigner.cs
- DataSourceConverter.cs
- Tokenizer.cs
- KnowledgeBase.cs
- RegisteredScript.cs
- ZipIORawDataFileBlock.cs
- CodeAccessSecurityEngine.cs
- InputProcessorProfiles.cs
- DynamicPhysicalDiscoSearcher.cs
- EmptyCollection.cs
- XmlSchemaAttributeGroup.cs