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
- localization.cs
- CommonEndpointBehaviorElement.cs
- TextServicesCompartment.cs
- TrackingRecordPreFilter.cs
- DbConnectionPoolOptions.cs
- EditorPartCollection.cs
- GregorianCalendarHelper.cs
- httpstaticobjectscollection.cs
- PageCatalogPart.cs
- PeerApplicationLaunchInfo.cs
- ResourceDisplayNameAttribute.cs
- SingleObjectCollection.cs
- DayRenderEvent.cs
- FormViewRow.cs
- DataGridClipboardHelper.cs
- RemoveStoryboard.cs
- RuleSettings.cs
- CodePropertyReferenceExpression.cs
- FragmentQueryKB.cs
- TagElement.cs
- UITypeEditor.cs
- RegexNode.cs
- ParseHttpDate.cs
- hresults.cs
- XhtmlTextWriter.cs
- CanonicalXml.cs
- BmpBitmapDecoder.cs
- ServiceOperation.cs
- HttpWrapper.cs
- DPTypeDescriptorContext.cs
- JavaScriptSerializer.cs
- TimelineGroup.cs
- TransformCryptoHandle.cs
- RelatedEnd.cs
- ScaleTransform.cs
- recordstatefactory.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SortDescriptionCollection.cs
- AssemblyAttributesGoHere.cs
- CallbackValidator.cs
- WebPartConnectionsDisconnectVerb.cs
- ClientProxyGenerator.cs
- XmlSchemaRedefine.cs
- Point.cs
- SQLDoubleStorage.cs
- LoginDesigner.cs
- TextChange.cs
- XmlChildNodes.cs
- CurrencyWrapper.cs
- ConfigurationHelpers.cs
- StrokeNodeData.cs
- ComponentManagerBroker.cs
- GridView.cs
- SafeBuffer.cs
- Interlocked.cs
- OracleEncoding.cs
- DebugView.cs
- DefaultPropertiesToSend.cs
- ScriptingAuthenticationServiceSection.cs
- AvTrace.cs
- GraphicsPathIterator.cs
- XmlExpressionDumper.cs
- AsymmetricKeyExchangeFormatter.cs
- FactoryMaker.cs
- TextStore.cs
- DoubleKeyFrameCollection.cs
- SoapRpcMethodAttribute.cs
- SparseMemoryStream.cs
- securestring.cs
- PreProcessor.cs
- DropDownButton.cs
- EntryWrittenEventArgs.cs
- Debug.cs
- Decoder.cs
- ScriptRef.cs
- XmlSchemaElement.cs
- MULTI_QI.cs
- EnumBuilder.cs
- UriSectionData.cs
- invalidudtexception.cs
- CodeNamespaceImport.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- XappLauncher.cs
- TimerExtension.cs
- TerminatingOperationBehavior.cs
- ToolStripRenderEventArgs.cs
- RelatedPropertyManager.cs
- ImageIndexConverter.cs
- RefType.cs
- EditorResources.cs
- TextCompositionManager.cs
- ScriptingScriptResourceHandlerSection.cs
- Lookup.cs
- TabletCollection.cs
- TreeView.cs
- ToolZone.cs
- SiteMapHierarchicalDataSourceView.cs
- SetterBaseCollection.cs
- TrailingSpaceComparer.cs
- connectionpool.cs