Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CultureInfo.cs
- CopyOnWriteList.cs
- TrustLevelCollection.cs
- _SSPISessionCache.cs
- ClrPerspective.cs
- MimeReturn.cs
- DataSourceControlBuilder.cs
- InputLanguageSource.cs
- _TLSstream.cs
- AuthenticationServiceManager.cs
- ProfileService.cs
- AccessedThroughPropertyAttribute.cs
- Parameter.cs
- __ComObject.cs
- ServicePointManagerElement.cs
- DataGridView.cs
- NativeMethods.cs
- DataGridViewComponentPropertyGridSite.cs
- CharEntityEncoderFallback.cs
- CompilerTypeWithParams.cs
- ProcessHost.cs
- KeyboardNavigation.cs
- ProfilePropertyNameValidator.cs
- AuthenticateEventArgs.cs
- DataReaderContainer.cs
- TextServicesHost.cs
- HMAC.cs
- MenuItem.cs
- ClientRoleProvider.cs
- ContractCodeDomInfo.cs
- VirtualizedContainerService.cs
- FactoryGenerator.cs
- SoapReflectionImporter.cs
- ACL.cs
- AttributeUsageAttribute.cs
- FixedSOMContainer.cs
- DataConnectionHelper.cs
- CommandBindingCollection.cs
- HelloOperation11AsyncResult.cs
- RawAppCommandInputReport.cs
- SiteMap.cs
- BitmapInitialize.cs
- ByteStreamGeometryContext.cs
- ServiceHostingEnvironment.cs
- InputManager.cs
- SQLBytes.cs
- DataAccessException.cs
- EventProxy.cs
- CapabilitiesUse.cs
- Vector3DAnimationUsingKeyFrames.cs
- TranslateTransform.cs
- BindingValueChangedEventArgs.cs
- RadioButtonDesigner.cs
- CookieHandler.cs
- RolePrincipal.cs
- WindowsListViewItemCheckBox.cs
- TextContainerChangedEventArgs.cs
- ComponentGuaranteesAttribute.cs
- KeyProperty.cs
- XmlSchemaSimpleContentExtension.cs
- TiffBitmapDecoder.cs
- MessagingActivityHelper.cs
- HtmlHead.cs
- ColumnResizeAdorner.cs
- Funcletizer.cs
- RewritingPass.cs
- RemotingServices.cs
- UpdateExpressionVisitor.cs
- FilteredAttributeCollection.cs
- DataGridClipboardCellContent.cs
- ListGeneralPage.cs
- DataGridViewColumnCollectionDialog.cs
- SafeTimerHandle.cs
- GradientBrush.cs
- SqlVersion.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TextMessageEncodingElement.cs
- DataGridViewRowCancelEventArgs.cs
- RefreshPropertiesAttribute.cs
- AudioException.cs
- GroupItem.cs
- EntityDataSourceSelectedEventArgs.cs
- EntityViewGenerationConstants.cs
- SemaphoreSecurity.cs
- ProcessModelInfo.cs
- XPathNodeList.cs
- BackStopAuthenticationModule.cs
- DataTableCollection.cs
- RegexGroup.cs
- Signature.cs
- SelectionChangedEventArgs.cs
- TextBlock.cs
- Typeface.cs
- SQLDecimalStorage.cs
- WebServiceHandler.cs
- EventManager.cs
- IndentTextWriter.cs
- Action.cs
- DependencyPropertyConverter.cs
- TextCollapsingProperties.cs