Code:
/ DotNET / DotNET / 8.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
- InfoCardRSAPKCS1SignatureFormatter.cs
- CacheHelper.cs
- LoaderAllocator.cs
- AppDomainCompilerProxy.cs
- DBCSCodePageEncoding.cs
- LiteralTextContainerControlBuilder.cs
- EventMetadata.cs
- StylusDownEventArgs.cs
- SafeArrayRankMismatchException.cs
- PlaceHolder.cs
- WebBrowser.cs
- ToolBarPanel.cs
- XmlDataSource.cs
- DuplexClientBase.cs
- XmlSchemaRedefine.cs
- DataGridViewTextBoxCell.cs
- MessageSecurityVersion.cs
- TargetParameterCountException.cs
- SpeakProgressEventArgs.cs
- EntityFunctions.cs
- FamilyMapCollection.cs
- TextShapeableCharacters.cs
- RectKeyFrameCollection.cs
- PeerDuplexChannel.cs
- LateBoundBitmapDecoder.cs
- MeasurementDCInfo.cs
- Options.cs
- ContextProperty.cs
- PanelStyle.cs
- DbgUtil.cs
- PreloadedPackages.cs
- EventLogTraceListener.cs
- CharacterHit.cs
- PlaceHolder.cs
- Aggregates.cs
- SharedUtils.cs
- FirewallWrapper.cs
- Condition.cs
- ContextMarshalException.cs
- RoleManagerSection.cs
- PresentationAppDomainManager.cs
- LicenseContext.cs
- InternalCache.cs
- HttpCacheParams.cs
- EUCJPEncoding.cs
- CfgParser.cs
- CategoryAttribute.cs
- TreeNodeCollectionEditorDialog.cs
- XPathChildIterator.cs
- Int64Animation.cs
- ObjectDataSourceChooseTypePanel.cs
- NumericUpDownAccelerationCollection.cs
- DbConnectionPool.cs
- XMLSyntaxException.cs
- WsdlParser.cs
- AutoResetEvent.cs
- NetNamedPipeSecurityMode.cs
- StringHandle.cs
- ModelItemDictionaryImpl.cs
- XmlDocumentSurrogate.cs
- CallSiteHelpers.cs
- Fault.cs
- ControlBuilder.cs
- EnglishPluralizationService.cs
- HwndSource.cs
- RowUpdatedEventArgs.cs
- ContentPosition.cs
- AtomPub10CategoriesDocumentFormatter.cs
- SafeSecurityHandles.cs
- ComboBoxRenderer.cs
- TextRangeEdit.cs
- WebPart.cs
- FixedSOMContainer.cs
- EndOfStreamException.cs
- Registry.cs
- StringUtil.cs
- ComNativeDescriptor.cs
- XamlClipboardData.cs
- HandlerWithFactory.cs
- DeflateStream.cs
- Mutex.cs
- CompressedStack.cs
- RootBuilder.cs
- PropertyGridCommands.cs
- RowSpanVector.cs
- FrameworkElementFactoryMarkupObject.cs
- LogWriteRestartAreaAsyncResult.cs
- BezierSegment.cs
- Comparer.cs
- TypeDelegator.cs
- RSAOAEPKeyExchangeFormatter.cs
- SyndicationLink.cs
- DocumentScope.cs
- FormViewRow.cs
- Event.cs
- SendKeys.cs
- ClientSponsor.cs
- SqlDataReader.cs
- HtmlTableCellCollection.cs
- ComponentDispatcherThread.cs