Code:
/ DotNET / DotNET / 8.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
- SerializationStore.cs
- Thread.cs
- XmlSubtreeReader.cs
- shaperfactory.cs
- WindowsClaimSet.cs
- Win32KeyboardDevice.cs
- TargetPerspective.cs
- MatrixStack.cs
- OleTxTransaction.cs
- TreeNodeStyleCollection.cs
- InvokeProviderWrapper.cs
- SvcMapFileLoader.cs
- DataGridTextBoxColumn.cs
- KeysConverter.cs
- UIElement3D.cs
- MessageQueueCriteria.cs
- processwaithandle.cs
- PersonalizationStateQuery.cs
- KeyboardEventArgs.cs
- SortAction.cs
- OracleDataAdapter.cs
- SafeArchiveContext.cs
- DispatcherExceptionFilterEventArgs.cs
- TiffBitmapEncoder.cs
- DocumentReferenceCollection.cs
- HtmlButton.cs
- SubordinateTransaction.cs
- JournalEntry.cs
- WindowsComboBox.cs
- COM2IDispatchConverter.cs
- ComEventsHelper.cs
- DesignRelationCollection.cs
- ICspAsymmetricAlgorithm.cs
- RefType.cs
- ConfigurationElement.cs
- AdCreatedEventArgs.cs
- Compiler.cs
- MailMessage.cs
- SqlSelectStatement.cs
- XmlWrappingReader.cs
- UiaCoreApi.cs
- InvalidOperationException.cs
- ServicesUtilities.cs
- HttpDictionary.cs
- TriggerCollection.cs
- CacheDependency.cs
- AdornerPresentationContext.cs
- EntityDesignerBuildProvider.cs
- XpsResourceDictionary.cs
- DeploymentSection.cs
- DigitShape.cs
- _DisconnectOverlappedAsyncResult.cs
- TextBoxBase.cs
- EntityModelBuildProvider.cs
- DecoderFallbackWithFailureFlag.cs
- PKCS1MaskGenerationMethod.cs
- WebServiceReceiveDesigner.cs
- XmlSchemaImporter.cs
- TableLayoutSettings.cs
- PermissionSetTriple.cs
- ActivityBindForm.Designer.cs
- ConfigUtil.cs
- HttpStreamMessageEncoderFactory.cs
- Solver.cs
- Publisher.cs
- ArraySortHelper.cs
- LambdaCompiler.Logical.cs
- DescendentsWalkerBase.cs
- TypeTypeConverter.cs
- SchemaEntity.cs
- VectorConverter.cs
- RequiredFieldValidator.cs
- Point.cs
- ProviderConnectionPoint.cs
- HtmlHead.cs
- DataGridSortCommandEventArgs.cs
- InputLanguageEventArgs.cs
- DesignTimeDataBinding.cs
- KerberosRequestorSecurityToken.cs
- ParseElementCollection.cs
- WebReferencesBuildProvider.cs
- DoubleLinkList.cs
- InternalCache.cs
- COM2ComponentEditor.cs
- PageRouteHandler.cs
- CustomSignedXml.cs
- FileLogRecord.cs
- TextTabProperties.cs
- BrowserDefinitionCollection.cs
- DiagnosticStrings.cs
- AssertSection.cs
- AsymmetricKeyExchangeFormatter.cs
- BufferedWebEventProvider.cs
- NativeConfigurationLoader.cs
- _IPv4Address.cs
- XmlAttributeCollection.cs
- SystemNetHelpers.cs
- MasterPageParser.cs
- XmlNamedNodeMap.cs
- StreamWriter.cs