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
- TemplatePagerField.cs
- OleDbStruct.cs
- WindowsSolidBrush.cs
- SafeNativeMethods.cs
- PolygonHotSpot.cs
- SafeCryptoKeyHandle.cs
- UrlMappingCollection.cs
- GPPOINTF.cs
- ResolveDuplexCD1AsyncResult.cs
- ClientTargetSection.cs
- LeafCellTreeNode.cs
- MemberRelationshipService.cs
- WebSysDefaultValueAttribute.cs
- SecurityPermission.cs
- BasePropertyDescriptor.cs
- FullTextState.cs
- SplitterPanelDesigner.cs
- CompositeControl.cs
- CapacityStreamGeometryContext.cs
- AdjustableArrowCap.cs
- QilInvokeLateBound.cs
- CodeCommentStatement.cs
- SmtpSection.cs
- StackOverflowException.cs
- PageThemeCodeDomTreeGenerator.cs
- TableLayoutStyleCollection.cs
- ResXResourceReader.cs
- unsafeIndexingFilterStream.cs
- CompilerParameters.cs
- XmlDesigner.cs
- PopOutPanel.cs
- SystemWebExtensionsSectionGroup.cs
- Substitution.cs
- AccessDataSourceView.cs
- MailWebEventProvider.cs
- HeaderUtility.cs
- DependencyObject.cs
- OpCellTreeNode.cs
- TypeInitializationException.cs
- WebPartMinimizeVerb.cs
- SessionStateUtil.cs
- FrameworkElement.cs
- PolicyChain.cs
- SqlInternalConnectionSmi.cs
- SessionStateContainer.cs
- ListItemCollection.cs
- Monitor.cs
- CompatibleIComparer.cs
- Globals.cs
- SamlAssertion.cs
- __Filters.cs
- Intellisense.cs
- DescendantOverDescendantQuery.cs
- PlaceHolder.cs
- VirtualizingPanel.cs
- ExpressionBuilderCollection.cs
- _BufferOffsetSize.cs
- MexHttpBindingCollectionElement.cs
- EventMap.cs
- diagnosticsswitches.cs
- ServiceOperation.cs
- TextEditor.cs
- TemplatedAdorner.cs
- AxHost.cs
- TrustSection.cs
- ScriptHandlerFactory.cs
- ProviderSettingsCollection.cs
- PropertyDescriptorCollection.cs
- HostExecutionContextManager.cs
- DbgUtil.cs
- ChooseAction.cs
- DecoderReplacementFallback.cs
- ZipFileInfo.cs
- BamlRecordHelper.cs
- XXXInfos.cs
- Size3D.cs
- StylusDevice.cs
- HashSetDebugView.cs
- SevenBitStream.cs
- TagMapInfo.cs
- IApplicationTrustManager.cs
- DrawingImage.cs
- HttpModuleActionCollection.cs
- QuaternionRotation3D.cs
- BinaryObjectInfo.cs
- Rectangle.cs
- CodeTypeReference.cs
- MasterPageBuildProvider.cs
- Instrumentation.cs
- ImageButton.cs
- DecoderFallback.cs
- ResourceExpressionBuilder.cs
- GridViewCommandEventArgs.cs
- MarkedHighlightComponent.cs
- InternalMappingException.cs
- ReaderOutput.cs
- TextDecoration.cs
- _StreamFramer.cs
- ObjectViewFactory.cs
- TrueReadOnlyCollection.cs