Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- SiteMapPathDesigner.cs
- SqlDataSourceQueryConverter.cs
- EUCJPEncoding.cs
- SuppressMergeCheckAttribute.cs
- DPTypeDescriptorContext.cs
- _RequestCacheProtocol.cs
- SigningDialog.cs
- ConnectionPoolManager.cs
- SemaphoreFullException.cs
- Page.cs
- FocusManager.cs
- PeerContact.cs
- EntityConnectionStringBuilderItem.cs
- CookieParameter.cs
- TCEAdapterGenerator.cs
- SafeFileMappingHandle.cs
- WebPartRestoreVerb.cs
- FigureParaClient.cs
- ValueUtilsSmi.cs
- SmtpReplyReader.cs
- DataGridViewRowPrePaintEventArgs.cs
- CommonObjectSecurity.cs
- CanonicalizationDriver.cs
- RequestTimeoutManager.cs
- WebServiceHost.cs
- BidirectionalDictionary.cs
- SafeProcessHandle.cs
- DelegatingTypeDescriptionProvider.cs
- WindowsAuthenticationEventArgs.cs
- NavigatorInput.cs
- XsdCachingReader.cs
- WebControlsSection.cs
- Simplifier.cs
- TextBoxAutoCompleteSourceConverter.cs
- AssociationSetMetadata.cs
- RowUpdatedEventArgs.cs
- SmiConnection.cs
- SynchronizationScope.cs
- DynamicAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- ProcessModuleCollection.cs
- WorkflowServiceHost.cs
- ProfileService.cs
- InputMethod.cs
- UseLicense.cs
- OleDbStruct.cs
- AppDomainProtocolHandler.cs
- BrowserCapabilitiesCodeGenerator.cs
- List.cs
- ChangeInterceptorAttribute.cs
- DataContractSerializerSection.cs
- SinglePageViewer.cs
- DashStyle.cs
- XmlStreamedByteStreamReader.cs
- RegisteredDisposeScript.cs
- CompilerGeneratedAttribute.cs
- COMException.cs
- DesignUtil.cs
- XmlSchemaDocumentation.cs
- ResourceSet.cs
- ScheduleChanges.cs
- DataGridTable.cs
- PeerNameResolver.cs
- TrustLevelCollection.cs
- PeerNameRegistration.cs
- MultiPageTextView.cs
- TablePattern.cs
- CreateUserWizardStep.cs
- VectorAnimationBase.cs
- BlurEffect.cs
- XamlStream.cs
- CompilationUtil.cs
- UIElementHelper.cs
- ParallelTimeline.cs
- UnsafeNativeMethodsPenimc.cs
- ConfigPathUtility.cs
- ComponentCollection.cs
- DbgCompiler.cs
- ColumnClickEvent.cs
- Calendar.cs
- JpegBitmapDecoder.cs
- SequenceDesigner.cs
- Listbox.cs
- TiffBitmapEncoder.cs
- BaseAsyncResult.cs
- xmlfixedPageInfo.cs
- MetaTable.cs
- SocketException.cs
- MenuCommands.cs
- ObjectViewListener.cs
- WebHostedComPlusServiceHost.cs
- MasterPage.cs
- SerializerDescriptor.cs
- PersonalizationProviderCollection.cs
- PeerName.cs
- Win32PrintDialog.cs
- Property.cs
- SessionPageStatePersister.cs
- RestHandler.cs
- XmlSerializer.cs