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
- ServiceHttpHandlerFactory.cs
- SystemFonts.cs
- HeaderElement.cs
- PagesSection.cs
- ConfigurationSchemaErrors.cs
- Root.cs
- IgnoreDeviceFilterElementCollection.cs
- OleDbSchemaGuid.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DefaultClaimSet.cs
- XmlNode.cs
- EncodingNLS.cs
- PolygonHotSpot.cs
- WindowsFormsEditorServiceHelper.cs
- NativeActivityContext.cs
- QuaternionConverter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MissingMemberException.cs
- SystemGatewayIPAddressInformation.cs
- ActivityBuilderHelper.cs
- CallbackDebugElement.cs
- Range.cs
- PublishLicense.cs
- ElapsedEventArgs.cs
- HostAdapter.cs
- AgileSafeNativeMemoryHandle.cs
- OneToOneMappingSerializer.cs
- GuidelineSet.cs
- SqlErrorCollection.cs
- RelationshipEndCollection.cs
- RemoteCryptoTokenProvider.cs
- RadioButton.cs
- XmlSchemaAttributeGroupRef.cs
- _CacheStreams.cs
- COM2ComponentEditor.cs
- XmlObjectSerializer.cs
- DurationConverter.cs
- AlphaSortedEnumConverter.cs
- MetadataItemSerializer.cs
- XmlValidatingReader.cs
- HtmlHistory.cs
- OptimalBreakSession.cs
- AssociationSetMetadata.cs
- VariantWrapper.cs
- TableLayoutCellPaintEventArgs.cs
- StorageComplexPropertyMapping.cs
- BreakRecordTable.cs
- WizardPanel.cs
- StateFinalizationActivity.cs
- Visual3D.cs
- DrawingContext.cs
- LinqDataSourceSelectEventArgs.cs
- SelectionEditor.cs
- ScriptMethodAttribute.cs
- hwndwrapper.cs
- RegexGroupCollection.cs
- TdsValueSetter.cs
- Opcode.cs
- _NetworkingPerfCounters.cs
- ParameterBuilder.cs
- FacetValues.cs
- TextRenderer.cs
- SafeNativeMethodsOther.cs
- xmlglyphRunInfo.cs
- Menu.cs
- DBNull.cs
- PropertyEntry.cs
- SqlTypesSchemaImporter.cs
- EUCJPEncoding.cs
- XmlCompatibilityReader.cs
- FullTextLine.cs
- ExecutedRoutedEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- Span.cs
- CodeExporter.cs
- EntityTypeEmitter.cs
- ManagementEventWatcher.cs
- Resources.Designer.cs
- DataSourceExpression.cs
- DataGridLength.cs
- DependencyPropertyConverter.cs
- SendParametersContent.cs
- MultiSelectRootGridEntry.cs
- MobileErrorInfo.cs
- DataGridCell.cs
- GridViewUpdatedEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ThicknessAnimationBase.cs
- _NetRes.cs
- UInt64Storage.cs
- XmlSchemaAttribute.cs
- HelpProvider.cs
- SchemaTableOptionalColumn.cs
- WinInet.cs
- SapiRecoInterop.cs
- WorkflowOwnershipException.cs
- BitmapDownload.cs
- ASCIIEncoding.cs
- PrimarySelectionAdorner.cs