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
- _RequestCacheProtocol.cs
- XmlComment.cs
- Timer.cs
- MediaTimeline.cs
- FormDesigner.cs
- WindowsFormsSectionHandler.cs
- XmlRawWriter.cs
- LicenseProviderAttribute.cs
- ModelUtilities.cs
- arc.cs
- PenLineJoinValidation.cs
- codemethodreferenceexpression.cs
- TraceAsyncResult.cs
- CryptoKeySecurity.cs
- CheckPair.cs
- ProfileInfo.cs
- CodeDelegateInvokeExpression.cs
- DiscoveryVersionConverter.cs
- xsdvalidator.cs
- BinaryCommonClasses.cs
- ZoneIdentityPermission.cs
- EntityDataSourceReferenceGroup.cs
- HostedHttpRequestAsyncResult.cs
- PersonalizationStateInfo.cs
- XXXOnTypeBuilderInstantiation.cs
- DbXmlEnabledProviderManifest.cs
- SignedInfo.cs
- ExpressionParser.cs
- SqlConnectionStringBuilder.cs
- SafeNativeMethods.cs
- ViewGenResults.cs
- ComplexPropertyEntry.cs
- SslStream.cs
- AnonymousIdentificationModule.cs
- GPPOINT.cs
- SecurityTokenRequirement.cs
- DesigntimeLicenseContextSerializer.cs
- CriticalExceptions.cs
- SecurityTokenProvider.cs
- KerberosRequestorSecurityToken.cs
- EarlyBoundInfo.cs
- RequestCacheEntry.cs
- GeneralTransform3DGroup.cs
- AlignmentYValidation.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- RepeaterItemEventArgs.cs
- ComplexLine.cs
- TrackingServices.cs
- ToolStripDropDownItem.cs
- StructuredType.cs
- ToolStripContainerActionList.cs
- TableLayoutStyleCollection.cs
- XmlNamespaceMappingCollection.cs
- QuaternionValueSerializer.cs
- LeaseManager.cs
- HTTPNotFoundHandler.cs
- DbMetaDataFactory.cs
- TextFormattingConverter.cs
- SubMenuStyleCollectionEditor.cs
- XmlSchemaSimpleContentRestriction.cs
- RuleSettings.cs
- PreservationFileWriter.cs
- TemplateParser.cs
- DataRecordObjectView.cs
- TextEndOfLine.cs
- SafeThemeHandle.cs
- SQLDoubleStorage.cs
- VirtualizingPanel.cs
- SHA384.cs
- PrintingPermissionAttribute.cs
- KerberosSecurityTokenProvider.cs
- Transform3DCollection.cs
- HtmlTableCell.cs
- ManagementEventArgs.cs
- IssuanceTokenProviderBase.cs
- ApplicationCommands.cs
- CompleteWizardStep.cs
- SymbolType.cs
- DataGridViewControlCollection.cs
- XmlSchema.cs
- EarlyBoundInfo.cs
- MapPathBasedVirtualPathProvider.cs
- DrawingContextWalker.cs
- ScanQueryOperator.cs
- ConfigurationSectionHelper.cs
- AdornerLayer.cs
- Duration.cs
- WinEventTracker.cs
- AuthenticationException.cs
- MenuItemStyleCollection.cs
- LicenseException.cs
- StoreAnnotationsMap.cs
- XmlDocumentSerializer.cs
- CodeBlockBuilder.cs
- CapiNative.cs
- NetworkInformationException.cs
- RtfToXamlReader.cs
- ZoneMembershipCondition.cs
- AmbientProperties.cs
- EntityProxyFactory.cs