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
- ExtentJoinTreeNode.cs
- FlowDocumentReader.cs
- WSFederationHttpSecurityElement.cs
- MimePart.cs
- SR.cs
- NativeMethods.cs
- PersonalizationProvider.cs
- _ListenerRequestStream.cs
- DefaultValidator.cs
- ThousandthOfEmRealPoints.cs
- PreloadedPackages.cs
- RightsManagementManager.cs
- ConditionalAttribute.cs
- XamlRtfConverter.cs
- HtmlInputSubmit.cs
- ResumeStoryboard.cs
- TiffBitmapEncoder.cs
- _ShellExpression.cs
- TemplateControlCodeDomTreeGenerator.cs
- EntityProviderServices.cs
- GridViewRowPresenterBase.cs
- ArrayElementGridEntry.cs
- TdsValueSetter.cs
- PersistChildrenAttribute.cs
- IsolatedStorageFile.cs
- GlyphRunDrawing.cs
- SimpleWorkerRequest.cs
- Camera.cs
- WindowsIdentity.cs
- OdbcStatementHandle.cs
- FlowLayoutPanelDesigner.cs
- CharacterBufferReference.cs
- DocumentPageTextView.cs
- SmtpMail.cs
- TextRenderingModeValidation.cs
- ProxyGenerator.cs
- ControlDesignerState.cs
- _SSPIWrapper.cs
- FatalException.cs
- XamlReaderHelper.cs
- DataTableMappingCollection.cs
- TemplateComponentConnector.cs
- ListViewHitTestInfo.cs
- DBParameter.cs
- StandardCommandToolStripMenuItem.cs
- DataServiceProcessingPipelineEventArgs.cs
- HttpStreamXmlDictionaryWriter.cs
- BaseTemplateParser.cs
- ELinqQueryState.cs
- AttributeAction.cs
- BulletedList.cs
- InternalConfigRoot.cs
- AttachedAnnotationChangedEventArgs.cs
- HttpProfileBase.cs
- SplashScreen.cs
- TargetFrameworkUtil.cs
- DesignerDataParameter.cs
- ReadOnlyCollectionBase.cs
- RenderOptions.cs
- TableChangeProcessor.cs
- ToolStripSeparator.cs
- CompensableActivity.cs
- XmlJsonWriter.cs
- ConfigXmlWhitespace.cs
- Size3DConverter.cs
- HttpCachePolicy.cs
- StandardRuntimeEnumValidator.cs
- Win32.cs
- Size3DValueSerializer.cs
- MdiWindowListItemConverter.cs
- UnsafeNativeMethods.cs
- CodeGroup.cs
- Slider.cs
- MetadataCacheItem.cs
- EarlyBoundInfo.cs
- DetailsViewCommandEventArgs.cs
- MultiSelectRootGridEntry.cs
- UntypedNullExpression.cs
- AppModelKnownContentFactory.cs
- Int32Storage.cs
- PolyLineSegmentFigureLogic.cs
- DirectionalLight.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HtmlInputFile.cs
- ButtonPopupAdapter.cs
- PriorityQueue.cs
- TableHeaderCell.cs
- ValidatorCollection.cs
- XPathNodeList.cs
- NamedPipeProcessProtocolHandler.cs
- SchemaNamespaceManager.cs
- ToolStripPanelCell.cs
- TransformationRules.cs
- Screen.cs
- FixedPageStructure.cs
- CreateUserWizardStep.cs
- TdsEnums.cs
- Model3DGroup.cs
- XmlSchemaComplexContent.cs
- WindowsGraphicsWrapper.cs