Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / ConnectionManagementElementCollection.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UDPClient.cs
- PropertyTabAttribute.cs
- PropertyStore.cs
- CursorInteropHelper.cs
- OracleCommand.cs
- IdentityReference.cs
- Win32Interop.cs
- UserControlAutomationPeer.cs
- XmlChoiceIdentifierAttribute.cs
- EntitySqlQueryState.cs
- CaseInsensitiveComparer.cs
- DeferredReference.cs
- MembershipValidatePasswordEventArgs.cs
- ValidationErrorCollection.cs
- PathGradientBrush.cs
- MailAddress.cs
- EditorZoneBase.cs
- EraserBehavior.cs
- InstanceCollisionException.cs
- EntityViewGenerationConstants.cs
- ObjectRef.cs
- PropertyGroupDescription.cs
- SevenBitStream.cs
- AvTraceDetails.cs
- JavascriptCallbackBehaviorAttribute.cs
- DoubleMinMaxAggregationOperator.cs
- HtmlDocument.cs
- TableHeaderCell.cs
- NativeMethodsOther.cs
- SrgsElementList.cs
- LostFocusEventManager.cs
- ScrollableControlDesigner.cs
- QilList.cs
- SettingsPropertyIsReadOnlyException.cs
- IriParsingElement.cs
- ScrollPattern.cs
- EntityContainerAssociationSetEnd.cs
- MembershipSection.cs
- ChameleonKey.cs
- PolicyChain.cs
- TdsRecordBufferSetter.cs
- PointLightBase.cs
- TextOnlyOutput.cs
- AbandonedMutexException.cs
- EventWaitHandleSecurity.cs
- HMAC.cs
- FixUp.cs
- XmlCodeExporter.cs
- TextServicesLoader.cs
- AppDomainAttributes.cs
- EraserBehavior.cs
- ArrayList.cs
- ItemsPresenter.cs
- SerialPinChanges.cs
- Region.cs
- Block.cs
- Int16AnimationBase.cs
- DependencyObjectProvider.cs
- HandleCollector.cs
- StorageConditionPropertyMapping.cs
- FileDialogCustomPlace.cs
- ByeMessageCD1.cs
- ControlBuilderAttribute.cs
- XomlCompilerResults.cs
- CultureInfo.cs
- AttributeExtensions.cs
- ButtonRenderer.cs
- SaveFileDialog.cs
- __TransparentProxy.cs
- PagesChangedEventArgs.cs
- Variable.cs
- CryptoHelper.cs
- BinHexDecoder.cs
- DebugTracing.cs
- StrongNamePublicKeyBlob.cs
- UserNameSecurityTokenProvider.cs
- TrackingLocationCollection.cs
- XmlSerializationGeneratedCode.cs
- Region.cs
- ExceptionAggregator.cs
- KnownTypes.cs
- PenCursorManager.cs
- PersonalizablePropertyEntry.cs
- DataGridClipboardHelper.cs
- QilFactory.cs
- BitConverter.cs
- WorkflowDesignerMessageFilter.cs
- SqlHelper.cs
- CompositeFontInfo.cs
- DatePicker.cs
- BasicViewGenerator.cs
- AutomationPropertyChangedEventArgs.cs
- AssemblyName.cs
- CategoryGridEntry.cs
- SupportingTokenBindingElement.cs
- TextBlock.cs
- MinimizableAttributeTypeConverter.cs
- BitmapEncoder.cs
- TypeConverterHelper.cs
- RelativeSource.cs