Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / Configuration / WebRequestModuleElementCollection.cs / 1 / WebRequestModuleElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(WebRequestModuleElement))] public sealed class WebRequestModuleElementCollection : ConfigurationElementCollection { public WebRequestModuleElementCollection() { } public WebRequestModuleElement this[int index] { get { return (WebRequestModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new WebRequestModuleElement this[string name] { get { return (WebRequestModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(WebRequestModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new WebRequestModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((WebRequestModuleElement)element).Key; } public int IndexOf(WebRequestModuleElement element) { return BaseIndexOf(element); } public void Remove(WebRequestModuleElement 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(WebRequestModuleElement))] public sealed class WebRequestModuleElementCollection : ConfigurationElementCollection { public WebRequestModuleElementCollection() { } public WebRequestModuleElement this[int index] { get { return (WebRequestModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new WebRequestModuleElement this[string name] { get { return (WebRequestModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(WebRequestModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new WebRequestModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((WebRequestModuleElement)element).Key; } public int IndexOf(WebRequestModuleElement element) { return BaseIndexOf(element); } public void Remove(WebRequestModuleElement 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
- DesignerEventService.cs
- BoundsDrawingContextWalker.cs
- ResourceDescriptionAttribute.cs
- PropertyPathConverter.cs
- xmlsaver.cs
- FormViewRow.cs
- Vector3DValueSerializer.cs
- MemberProjectionIndex.cs
- ConnectionStringSettings.cs
- IItemProperties.cs
- ToolBarOverflowPanel.cs
- DES.cs
- HostingEnvironmentSection.cs
- SQLInt32.cs
- KerberosRequestorSecurityToken.cs
- TraceInternal.cs
- EdmEntityTypeAttribute.cs
- UniqueIdentifierService.cs
- AssemblyInfo.cs
- RoutedUICommand.cs
- SamlConstants.cs
- BuildProviderUtils.cs
- Utils.cs
- CertificateManager.cs
- DataColumn.cs
- SystemFonts.cs
- AnnotationMap.cs
- WizardStepBase.cs
- OrderedDictionary.cs
- PhonemeEventArgs.cs
- QuaternionAnimation.cs
- SafeFileMappingHandle.cs
- X509ClientCertificateAuthentication.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DependencyObjectType.cs
- Int16.cs
- DataServiceRequestOfT.cs
- ErrorEventArgs.cs
- BridgeDataRecord.cs
- BrowserInteropHelper.cs
- UriWriter.cs
- XmlCollation.cs
- _LocalDataStore.cs
- FontEmbeddingManager.cs
- MenuItemCollection.cs
- StopStoryboard.cs
- StorageEntityContainerMapping.cs
- Stackframe.cs
- TextMetrics.cs
- OutKeywords.cs
- ImageDrawing.cs
- PreviewKeyDownEventArgs.cs
- SiteMapDataSource.cs
- Divide.cs
- Material.cs
- SqlErrorCollection.cs
- Collection.cs
- RectAnimation.cs
- SimpleLine.cs
- MailAddressCollection.cs
- TextEditorSpelling.cs
- CharacterHit.cs
- RouteUrlExpressionBuilder.cs
- DiagnosticsConfiguration.cs
- PartitionResolver.cs
- RequestCacheManager.cs
- DataControlField.cs
- ExponentialEase.cs
- SqlExpressionNullability.cs
- CancellationTokenRegistration.cs
- StickyNote.cs
- StylusEditingBehavior.cs
- UriTemplateEquivalenceComparer.cs
- MessageBox.cs
- ObjectDataSourceView.cs
- PointAnimationBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- ClassData.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- UdpDiscoveryEndpointProvider.cs
- FixedNode.cs
- PrintPreviewGraphics.cs
- PixelShader.cs
- ByteStreamMessageEncoder.cs
- DecodeHelper.cs
- MultiSelector.cs
- LicenseContext.cs
- TableRow.cs
- Site.cs
- AsyncOperation.cs
- DocumentApplication.cs
- KeyFrames.cs
- CompiledRegexRunnerFactory.cs
- FilterEventArgs.cs
- ExpressionBindings.cs
- TreeNodeMouseHoverEvent.cs
- TimeManager.cs
- ChannelBinding.cs
- RowSpanVector.cs
- SafeFileMappingHandle.cs