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
- TimeSpanSecondsConverter.cs
- XAMLParseException.cs
- SliderAutomationPeer.cs
- SendMailErrorEventArgs.cs
- ErrorTolerantObjectWriter.cs
- ColumnClickEvent.cs
- ViewLoader.cs
- Triplet.cs
- Utils.cs
- NotSupportedException.cs
- LayoutExceptionEventArgs.cs
- ProtocolsConfigurationEntry.cs
- CopyCodeAction.cs
- CroppedBitmap.cs
- Documentation.cs
- ObjectContext.cs
- PageClientProxyGenerator.cs
- safemediahandle.cs
- WizardPanelChangingEventArgs.cs
- FrameworkElementFactory.cs
- CryptoKeySecurity.cs
- Ops.cs
- TemplateControl.cs
- CommandExpr.cs
- FilteredDataSetHelper.cs
- OutputCacheSection.cs
- InlineCollection.cs
- DefaultObjectMappingItemCollection.cs
- ElementMarkupObject.cs
- DesignerVerb.cs
- AnnotationResourceCollection.cs
- SqlCharStream.cs
- AlphaSortedEnumConverter.cs
- ListView.cs
- InputMethod.cs
- RadioButtonStandardAdapter.cs
- WebPartDeleteVerb.cs
- RemotingAttributes.cs
- EncryptedReference.cs
- UnsafeNativeMethods.cs
- RuntimeEnvironment.cs
- SqlOuterApplyReducer.cs
- ControlCachePolicy.cs
- DesignRelation.cs
- XmlIlTypeHelper.cs
- ToolStripDropDownItemDesigner.cs
- CharStorage.cs
- XmlUtf8RawTextWriter.cs
- CommandLibraryHelper.cs
- StoragePropertyMapping.cs
- BooleanFacetDescriptionElement.cs
- _CookieModule.cs
- AstNode.cs
- ScriptBehaviorDescriptor.cs
- PublisherIdentityPermission.cs
- HwndHost.cs
- BinaryObjectReader.cs
- MobileTemplatedControlDesigner.cs
- MaskInputRejectedEventArgs.cs
- WorkflowPrinting.cs
- HtmlToClrEventProxy.cs
- DataListComponentEditor.cs
- BackStopAuthenticationModule.cs
- ObfuscateAssemblyAttribute.cs
- AffineTransform3D.cs
- TableLayoutPanel.cs
- ArrayTypeMismatchException.cs
- Triplet.cs
- ScrollPatternIdentifiers.cs
- DataGridViewBindingCompleteEventArgs.cs
- AdministrationHelpers.cs
- ListViewTableCell.cs
- EventLogEntryCollection.cs
- GridViewColumn.cs
- QueryOutputWriter.cs
- HandleCollector.cs
- ThreadInterruptedException.cs
- Menu.cs
- GridLengthConverter.cs
- SharingService.cs
- DataGridViewCellValueEventArgs.cs
- Translator.cs
- Compress.cs
- EpmCustomContentDeSerializer.cs
- DigitShape.cs
- BamlLocalizableResource.cs
- ImpersonationContext.cs
- PropertyDescriptor.cs
- Console.cs
- TabControl.cs
- VisualBrush.cs
- ColumnCollection.cs
- XmlUtil.cs
- SplashScreenNativeMethods.cs
- Cell.cs
- WebPartTransformer.cs
- Binding.cs
- DataStreamFromComStream.cs
- BitStack.cs
- InteropBitmapSource.cs