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
- ServiceEndpointCollection.cs
- XmlAttributeAttribute.cs
- UInt16Storage.cs
- ChildrenQuery.cs
- XmlChildEnumerator.cs
- DataGridCellItemAutomationPeer.cs
- ApplicationSettingsBase.cs
- Persist.cs
- FontCacheLogic.cs
- XamlValidatingReader.cs
- EditingCoordinator.cs
- COM2ExtendedUITypeEditor.cs
- ToolStripRenderer.cs
- WebPermission.cs
- DeobfuscatingStream.cs
- SmtpTransport.cs
- RoleGroup.cs
- AssemblyResourceLoader.cs
- WindowsFormsLinkLabel.cs
- COM2EnumConverter.cs
- ComponentDispatcherThread.cs
- HybridObjectCache.cs
- DependencyProperty.cs
- MatrixIndependentAnimationStorage.cs
- FileAuthorizationModule.cs
- VisualBrush.cs
- Renderer.cs
- OpenFileDialog.cs
- DeleteBookmarkScope.cs
- DataGridViewSortCompareEventArgs.cs
- RowSpanVector.cs
- Permission.cs
- DocComment.cs
- QuaternionValueSerializer.cs
- TemplateManager.cs
- UndoUnit.cs
- EntityDataSourceChangedEventArgs.cs
- XamlReader.cs
- ValidationEventArgs.cs
- XmlUnspecifiedAttribute.cs
- DivideByZeroException.cs
- SEHException.cs
- TableRowGroup.cs
- MembershipUser.cs
- PropertyInfoSet.cs
- TrackingAnnotationCollection.cs
- NotConverter.cs
- RegexRunner.cs
- IDQuery.cs
- PageRequestManager.cs
- UrlAuthFailedErrorFormatter.cs
- RangeBaseAutomationPeer.cs
- DesignerTransaction.cs
- DrawingVisual.cs
- Util.cs
- CheckedListBox.cs
- DataException.cs
- TreeNodeStyleCollection.cs
- CheckBoxField.cs
- DateTimeConverter.cs
- ScriptingSectionGroup.cs
- InheritanceContextHelper.cs
- JsonXmlDataContract.cs
- _StreamFramer.cs
- PasswordBoxAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- AutoCompleteStringCollection.cs
- DictionarySectionHandler.cs
- XmlExpressionDumper.cs
- webeventbuffer.cs
- CreateUserWizardDesigner.cs
- MultiSelector.cs
- XmlSchemaAppInfo.cs
- CounterNameConverter.cs
- bidPrivateBase.cs
- EmptyQuery.cs
- ChildrenQuery.cs
- Rule.cs
- SpellerHighlightLayer.cs
- __FastResourceComparer.cs
- DbParameterCollectionHelper.cs
- ApplicationProxyInternal.cs
- HtmlInputRadioButton.cs
- MimeTypeAttribute.cs
- ClientSponsor.cs
- ChtmlTextWriter.cs
- XmlSchemaAny.cs
- LongValidator.cs
- MemberInitExpression.cs
- HostingPreferredMapPath.cs
- AspNetHostingPermission.cs
- CodeDelegateInvokeExpression.cs
- XamlTypeMapper.cs
- TraceListener.cs
- SoapMessage.cs
- TargetControlTypeAttribute.cs
- Attributes.cs
- FontStretchConverter.cs
- Gdiplus.cs
- EntityViewGenerationConstants.cs