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
- CodeAttributeArgument.cs
- ExpressionBinding.cs
- RightsManagementEncryptedStream.cs
- WaveHeader.cs
- XmlStreamNodeWriter.cs
- ListViewItem.cs
- Rect3DConverter.cs
- Codec.cs
- SystemParameters.cs
- ManagementNamedValueCollection.cs
- SectionXmlInfo.cs
- PointF.cs
- PathFigure.cs
- MatrixConverter.cs
- DefaultIfEmptyQueryOperator.cs
- SignerInfo.cs
- BoundColumn.cs
- HttpFormatExtensions.cs
- DocumentCollection.cs
- TextBox.cs
- ActionNotSupportedException.cs
- Rectangle.cs
- QilTypeChecker.cs
- StringUtil.cs
- SqlMetaData.cs
- SmiRecordBuffer.cs
- ClientTargetCollection.cs
- ActivityStatusChangeEventArgs.cs
- EmbeddedMailObjectCollectionEditor.cs
- FormsAuthenticationUser.cs
- WeakEventManager.cs
- BufferedOutputStream.cs
- EntityModelSchemaGenerator.cs
- HealthMonitoringSection.cs
- PageBuildProvider.cs
- UniqueSet.cs
- IndexedWhereQueryOperator.cs
- CustomAttributeSerializer.cs
- SmiMetaData.cs
- WebPartDescription.cs
- DataGridView.cs
- XmlDeclaration.cs
- DynamicDocumentPaginator.cs
- WindowsStartMenu.cs
- AssemblyAttributes.cs
- FontResourceCache.cs
- RuleSettings.cs
- DataGridViewTextBoxColumn.cs
- WindowShowOrOpenTracker.cs
- ReflectionServiceProvider.cs
- WebPartChrome.cs
- EdmProperty.cs
- SchemeSettingElementCollection.cs
- EntityContainerRelationshipSet.cs
- DefaultBinder.cs
- StringBuilder.cs
- XPathParser.cs
- UnsafeNativeMethods.cs
- TextSelectionProcessor.cs
- BypassElementCollection.cs
- InlineCollection.cs
- FixedHighlight.cs
- NullReferenceException.cs
- PermissionToken.cs
- RoutedEvent.cs
- HashMembershipCondition.cs
- WinFormsSecurity.cs
- TerminateWorkflow.cs
- QilScopedVisitor.cs
- InvalidateEvent.cs
- UserControlCodeDomTreeGenerator.cs
- TrustLevelCollection.cs
- ReaderWriterLock.cs
- SerialPort.cs
- BuilderPropertyEntry.cs
- ForeignKeyConstraint.cs
- TemplateEditingFrame.cs
- RtfToXamlReader.cs
- CompositeControl.cs
- Adorner.cs
- NotFiniteNumberException.cs
- AnchoredBlock.cs
- SpellerHighlightLayer.cs
- CompositeFontFamily.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- FlowDocumentReader.cs
- SerialErrors.cs
- FlowDocumentFormatter.cs
- MetafileHeaderWmf.cs
- ClipboardProcessor.cs
- TabControlCancelEvent.cs
- BitSet.cs
- SchemaElementDecl.cs
- CheckBoxBaseAdapter.cs
- ECDiffieHellmanCngPublicKey.cs
- WorkflowView.cs
- SignatureResourcePool.cs
- DynamicDocumentPaginator.cs
- SecurityElement.cs
- SharedStatics.cs