Code:
/ DotNET / DotNET / 8.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
- TabControl.cs
- DataObjectCopyingEventArgs.cs
- GiveFeedbackEvent.cs
- Statements.cs
- SubclassTypeValidatorAttribute.cs
- HtmlElementErrorEventArgs.cs
- SiteMapDataSourceDesigner.cs
- RepeaterItem.cs
- StatusBar.cs
- AdapterDictionary.cs
- safesecurityhelperavalon.cs
- NotificationContext.cs
- XmlSchemaChoice.cs
- HtmlHead.cs
- ToolStripContentPanelDesigner.cs
- ClockGroup.cs
- MetadataSource.cs
- EditCommandColumn.cs
- Point3DAnimation.cs
- DataBinding.cs
- ReadOnlyPropertyMetadata.cs
- CacheForPrimitiveTypes.cs
- Debugger.cs
- PngBitmapEncoder.cs
- ImageSource.cs
- EventHandlersDesigner.cs
- RoutedCommand.cs
- FilterableAttribute.cs
- FillBehavior.cs
- WebHttpSecurity.cs
- TransformerConfigurationWizardBase.cs
- TypeUnloadedException.cs
- RegexInterpreter.cs
- DoubleCollectionConverter.cs
- oledbmetadatacollectionnames.cs
- TemplateControlCodeDomTreeGenerator.cs
- HostedTransportConfigurationBase.cs
- ModulesEntry.cs
- WebSysDefaultValueAttribute.cs
- CollectionBuilder.cs
- DrawingGroup.cs
- Point.cs
- PasswordDeriveBytes.cs
- ADConnectionHelper.cs
- BamlLocalizableResource.cs
- RequestNavigateEventArgs.cs
- DataTransferEventArgs.cs
- SatelliteContractVersionAttribute.cs
- securitycriticaldata.cs
- ToolStrip.cs
- IncrementalCompileAnalyzer.cs
- IdentitySection.cs
- BinaryUtilClasses.cs
- DoubleStorage.cs
- LinqDataView.cs
- TextEditorCopyPaste.cs
- File.cs
- PublisherIdentityPermission.cs
- ClientRoleProvider.cs
- RenderData.cs
- InlineCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- Focus.cs
- TextTreeUndo.cs
- RuleSettings.cs
- ScrollProperties.cs
- GlyphElement.cs
- Timeline.cs
- Wizard.cs
- ValidationEventArgs.cs
- MessageBox.cs
- AppDomainManager.cs
- CredentialCache.cs
- XmlSchemaAnnotation.cs
- Context.cs
- BindingWorker.cs
- FixedPageAutomationPeer.cs
- ReversePositionQuery.cs
- SizeAnimationUsingKeyFrames.cs
- StateMachineWorkflowDesigner.cs
- ReachSerializerAsync.cs
- SocketPermission.cs
- IsolatedStorageFileStream.cs
- XamlUtilities.cs
- XmlnsDictionary.cs
- TokenBasedSet.cs
- NativeMethods.cs
- EdmError.cs
- BitArray.cs
- BaseContextMenu.cs
- ArgumentOutOfRangeException.cs
- QilVisitor.cs
- CustomErrorCollection.cs
- RichTextBox.cs
- Aes.cs
- Run.cs
- IPAddressCollection.cs
- CodeMethodInvokeExpression.cs
- EndpointReference.cs
- EncoderParameter.cs