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
- ArgumentException.cs
- TypeGenericEnumerableViewSchema.cs
- ValidationHelper.cs
- Literal.cs
- TimerExtension.cs
- OlePropertyStructs.cs
- ToolboxSnapDragDropEventArgs.cs
- SparseMemoryStream.cs
- NameNode.cs
- WindowsTokenRoleProvider.cs
- printdlgexmarshaler.cs
- DataContext.cs
- NavigationWindowAutomationPeer.cs
- WebHttpBindingElement.cs
- QueryHandler.cs
- SqlTransaction.cs
- SecurityDescriptor.cs
- TransformerConfigurationWizardBase.cs
- DeclaredTypeValidator.cs
- PerformanceCounterPermission.cs
- PostBackOptions.cs
- Int32Rect.cs
- ObjectStateFormatter.cs
- Sequence.cs
- TouchesCapturedWithinProperty.cs
- BindingManagerDataErrorEventArgs.cs
- SettingsAttributes.cs
- KeyValueInternalCollection.cs
- LogicalExpressionEditor.cs
- DrawingContextDrawingContextWalker.cs
- StreamWithDictionary.cs
- HttpCachePolicy.cs
- DiscoveryMessageSequenceGenerator.cs
- EntitySetBaseCollection.cs
- DynamicResourceExtension.cs
- SafeCryptHandles.cs
- JsonFormatGeneratorStatics.cs
- SoapClientProtocol.cs
- MachineSettingsSection.cs
- Assert.cs
- DependencyPropertyDescriptor.cs
- SecurityTokenRequirement.cs
- VSWCFServiceContractGenerator.cs
- RequestStatusBarUpdateEventArgs.cs
- SessionEndedEventArgs.cs
- UnsafeNativeMethods.cs
- CompensatableSequenceActivity.cs
- WebContext.cs
- AttributeEmitter.cs
- AutomationProperty.cs
- WindowsRichEditRange.cs
- ObjectListComponentEditor.cs
- AnimatedTypeHelpers.cs
- ProcessHostConfigUtils.cs
- ResourceKey.cs
- ZipPackagePart.cs
- _TLSstream.cs
- HttpModulesSection.cs
- GeneralTransform3DTo2DTo3D.cs
- DesignSurfaceCollection.cs
- WinEventHandler.cs
- ExpressionUtilities.cs
- _NestedMultipleAsyncResult.cs
- Transform3DCollection.cs
- FormViewInsertedEventArgs.cs
- InfoCardArgumentException.cs
- UnsafePeerToPeerMethods.cs
- PeerName.cs
- OleDbFactory.cs
- ProfileEventArgs.cs
- SqlInternalConnectionSmi.cs
- FormatterServices.cs
- _ConnectStream.cs
- RoleManagerModule.cs
- InfoCardArgumentException.cs
- BaseConfigurationRecord.cs
- XmlStringTable.cs
- NominalTypeEliminator.cs
- DependencyPropertyKey.cs
- WorkflowApplication.cs
- WebPartDisplayModeCollection.cs
- FilterQueryOptionExpression.cs
- SecurityPermission.cs
- HttpProtocolImporter.cs
- ReflectPropertyDescriptor.cs
- Int16AnimationBase.cs
- WorkingDirectoryEditor.cs
- UserPreferenceChangedEventArgs.cs
- LambdaCompiler.Expressions.cs
- DateBoldEvent.cs
- SeverityFilter.cs
- XmlReaderSettings.cs
- CodeIdentifier.cs
- ViewStateException.cs
- TextParaClient.cs
- SuppressMessageAttribute.cs
- XamlDesignerSerializationManager.cs
- PointValueSerializer.cs
- MessageSecurityException.cs
- parserscommon.cs