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
- MonitoringDescriptionAttribute.cs
- SoapAttributes.cs
- LocalizationComments.cs
- ManualResetEvent.cs
- TimeoutException.cs
- BaseTreeIterator.cs
- BindingBase.cs
- GlyphTypeface.cs
- BamlLocalizer.cs
- DateTimeUtil.cs
- Rotation3DAnimationUsingKeyFrames.cs
- NegotiateStream.cs
- XmlUtil.cs
- ClientRoleProvider.cs
- PropertyCollection.cs
- ContextMenuService.cs
- XmlCountingReader.cs
- WebBrowserHelper.cs
- PreProcessInputEventArgs.cs
- DrawingImage.cs
- Pointer.cs
- PathHelper.cs
- IntellisenseTextBox.designer.cs
- UnrecognizedAssertionsBindingElement.cs
- DesignParameter.cs
- ProviderUtil.cs
- XmlNodeChangedEventArgs.cs
- OutOfProcStateClientManager.cs
- ServiceSecurityAuditBehavior.cs
- TableHeaderCell.cs
- SocketException.cs
- CryptoHelper.cs
- PbrsForward.cs
- ListViewDataItem.cs
- PersonalizableAttribute.cs
- TimeSpan.cs
- Button.cs
- AttributeData.cs
- AttributeData.cs
- ControlBuilder.cs
- HTTPNotFoundHandler.cs
- RuntimeHandles.cs
- EmbossBitmapEffect.cs
- StartUpEventArgs.cs
- TextRunCacheImp.cs
- EdmToObjectNamespaceMap.cs
- HttpPostedFile.cs
- SimplePropertyEntry.cs
- ContractMethodParameterInfo.cs
- SqlProviderServices.cs
- UIElementHelper.cs
- FillErrorEventArgs.cs
- StyleCollection.cs
- SerializationFieldInfo.cs
- SafeEventLogReadHandle.cs
- ReliabilityContractAttribute.cs
- DurableInstanceManager.cs
- OpenTypeLayout.cs
- AnimationException.cs
- BitmapEffectDrawing.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DescendantBaseQuery.cs
- BatchServiceHost.cs
- MruCache.cs
- UnsignedPublishLicense.cs
- WebConfigurationManager.cs
- UrlMappingsModule.cs
- CultureTableRecord.cs
- DesignerSerializationOptionsAttribute.cs
- OrderedHashRepartitionStream.cs
- ValueType.cs
- ResolveNameEventArgs.cs
- DateTimeFormat.cs
- ProxyWebPartConnectionCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- CommandHelper.cs
- SessionStateItemCollection.cs
- RSACryptoServiceProvider.cs
- FilterEventArgs.cs
- NameValuePermission.cs
- ListViewAutomationPeer.cs
- SchemaImporterExtensionElementCollection.cs
- EventMappingSettings.cs
- ColumnMapProcessor.cs
- FormsAuthenticationModule.cs
- SqlClientWrapperSmiStreamChars.cs
- BindingContext.cs
- NumberSubstitution.cs
- TextEditorSelection.cs
- SqlWriter.cs
- ProtectedUri.cs
- COAUTHIDENTITY.cs
- ViewCellSlot.cs
- StyleSheetRefUrlEditor.cs
- OrderByLifter.cs
- ClientApiGenerator.cs
- SinglePageViewer.cs
- Buffer.cs
- ServiceDesigner.xaml.cs
- SynchronousReceiveBehavior.cs