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
- LogSwitch.cs
- _LocalDataStoreMgr.cs
- SpecularMaterial.cs
- OracleDataAdapter.cs
- Rect3D.cs
- StyleSelector.cs
- Model3DCollection.cs
- ClientScriptManagerWrapper.cs
- CanonicalizationDriver.cs
- HtmlInputPassword.cs
- FlowDocumentReaderAutomationPeer.cs
- FocusWithinProperty.cs
- Internal.cs
- DesignerSerializationVisibilityAttribute.cs
- CancellationTokenSource.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SqlReferenceCollection.cs
- cache.cs
- SchemaNames.cs
- LineServicesRun.cs
- _LocalDataStore.cs
- ScriptManagerProxy.cs
- ResXFileRef.cs
- XmlWriterTraceListener.cs
- ContractComponent.cs
- Menu.cs
- MultiSelector.cs
- HTMLTagNameToTypeMapper.cs
- SmtpNegotiateAuthenticationModule.cs
- EnumConverter.cs
- AdPostCacheSubstitution.cs
- SQLInt16.cs
- ToolStrip.cs
- TextDocumentView.cs
- MimeTypeAttribute.cs
- EdmProperty.cs
- JapaneseLunisolarCalendar.cs
- ListView.cs
- Context.cs
- TransportBindingElementImporter.cs
- DataViewSetting.cs
- RadioButton.cs
- SuppressIldasmAttribute.cs
- OptimisticConcurrencyException.cs
- CryptoApi.cs
- ToolStripLocationCancelEventArgs.cs
- WebPartConnectionsEventArgs.cs
- RequestCachePolicy.cs
- MissingMethodException.cs
- PtsCache.cs
- RadioButton.cs
- DebugView.cs
- MultiByteCodec.cs
- ApplicationFileCodeDomTreeGenerator.cs
- __ConsoleStream.cs
- CssStyleCollection.cs
- LinkLabel.cs
- RbTree.cs
- SqlDataSource.cs
- AutoGeneratedField.cs
- CroppedBitmap.cs
- SignatureHelper.cs
- WinInetCache.cs
- NotifyCollectionChangedEventArgs.cs
- WebPartConnectVerb.cs
- DataStorage.cs
- SiteMapNodeItem.cs
- EntityCommandExecutionException.cs
- CalendarModeChangedEventArgs.cs
- BoundingRectTracker.cs
- OracleConnectionFactory.cs
- StrokeCollection.cs
- XmlSchemaInclude.cs
- ConnectionConsumerAttribute.cs
- NativeCppClassAttribute.cs
- DataGridViewColumnTypeEditor.cs
- NativeMethodsCLR.cs
- SecurityImpersonationBehavior.cs
- CompositeControlDesigner.cs
- StackBuilderSink.cs
- _ServiceNameStore.cs
- URLEditor.cs
- PropertyValue.cs
- SqlDataReader.cs
- SmiEventStream.cs
- WhileDesigner.xaml.cs
- TraceHandler.cs
- DataViewManager.cs
- precedingquery.cs
- WSHttpBindingElement.cs
- MultipleViewPattern.cs
- InsufficientMemoryException.cs
- DbParameterCollection.cs
- ResourceAssociationSet.cs
- CatalogPart.cs
- DependencyProperty.cs
- QilReplaceVisitor.cs
- PlatformCulture.cs
- PluralizationService.cs
- FaultDescription.cs