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
- ColorComboBox.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataGridViewRowCollection.cs
- ReadContentAsBinaryHelper.cs
- BaseCAMarshaler.cs
- CancellableEnumerable.cs
- AttachedPropertyBrowsableAttribute.cs
- ClientEventManager.cs
- Point3DCollection.cs
- TemplateField.cs
- AttributeParameterInfo.cs
- XmlReflectionMember.cs
- LicenseManager.cs
- ClientSettingsStore.cs
- ExpressionVisitor.cs
- TagPrefixCollection.cs
- RecommendedAsConfigurableAttribute.cs
- TextServicesDisplayAttribute.cs
- DataBoundLiteralControl.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FilteredDataSetHelper.cs
- MsmqAppDomainProtocolHandler.cs
- DbConnectionPoolOptions.cs
- OdbcConnectionFactory.cs
- Base64Encoding.cs
- MatcherBuilder.cs
- StrokeDescriptor.cs
- SplitContainer.cs
- XmlSchemaAttribute.cs
- Enum.cs
- HttpException.cs
- RemotingSurrogateSelector.cs
- Registry.cs
- KeyValueConfigurationCollection.cs
- BrushConverter.cs
- RootProjectionNode.cs
- PathFigureCollection.cs
- Int16Converter.cs
- GPPOINTF.cs
- ProfileModule.cs
- CustomWebEventKey.cs
- XmlTextAttribute.cs
- HitTestDrawingContextWalker.cs
- FileDetails.cs
- AssertUtility.cs
- ListenerElementsCollection.cs
- MonthCalendar.cs
- DataObjectFieldAttribute.cs
- DbParameterHelper.cs
- SmtpCommands.cs
- PerfCounterSection.cs
- EventLogTraceListener.cs
- Attribute.cs
- VBIdentifierDesigner.xaml.cs
- ReadOnlyCollection.cs
- bindurihelper.cs
- PathSegmentCollection.cs
- AttributeData.cs
- RbTree.cs
- SignatureDescription.cs
- EncryptedPackageFilter.cs
- HttpClientCertificate.cs
- CatalogPart.cs
- ValidationEventArgs.cs
- EdmError.cs
- MappingModelBuildProvider.cs
- JpegBitmapEncoder.cs
- FixedHyperLink.cs
- TargetControlTypeCache.cs
- _UncName.cs
- SecurityElement.cs
- HttpStreamXmlDictionaryReader.cs
- AnimationClockResource.cs
- ManipulationPivot.cs
- Stack.cs
- ReliableMessagingHelpers.cs
- NotifyIcon.cs
- ValidationResult.cs
- BamlLocalizer.cs
- DataGridTable.cs
- RIPEMD160.cs
- Component.cs
- TableHeaderCell.cs
- StubHelpers.cs
- XPathPatternBuilder.cs
- SafeTokenHandle.cs
- FrameworkPropertyMetadata.cs
- SafeRightsManagementPubHandle.cs
- KnownBoxes.cs
- ObjectTypeMapping.cs
- MonthChangedEventArgs.cs
- MemoryMappedFile.cs
- bindurihelper.cs
- ExpressionVisitorHelpers.cs
- Exceptions.cs
- ComponentChangedEvent.cs
- Helper.cs
- WindowHideOrCloseTracker.cs
- HwndPanningFeedback.cs
- externdll.cs