Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Container.cs
- MembershipValidatePasswordEventArgs.cs
- GroupLabel.cs
- FlowLayoutSettings.cs
- BindingList.cs
- PathFigureCollection.cs
- QilCloneVisitor.cs
- FusionWrap.cs
- HostUtils.cs
- AutomationIdentifierGuids.cs
- ReturnEventArgs.cs
- ProfileInfo.cs
- BinaryMethodMessage.cs
- RowParagraph.cs
- XmlAnyElementAttributes.cs
- GeneralTransformCollection.cs
- BindingMemberInfo.cs
- ExceptionUtility.cs
- DataServiceEntityAttribute.cs
- XPathAncestorQuery.cs
- ProjectionCamera.cs
- MenuItemAutomationPeer.cs
- Classification.cs
- PartManifestEntry.cs
- EdmConstants.cs
- RowsCopiedEventArgs.cs
- baseaxisquery.cs
- WebPageTraceListener.cs
- Pts.cs
- GlyphTypeface.cs
- HtmlHead.cs
- DataGridTextBoxColumn.cs
- DbBuffer.cs
- EnumCodeDomSerializer.cs
- AdministrationHelpers.cs
- SafeRegistryHandle.cs
- SharedStatics.cs
- HtmlTableCell.cs
- ZoneLinkButton.cs
- WindowsTitleBar.cs
- ToolStripLabel.cs
- MenuItemStyle.cs
- MarginsConverter.cs
- CallbackHandler.cs
- XmlSchemaAttribute.cs
- FacetDescriptionElement.cs
- ObjRef.cs
- ReadOnlyMetadataCollection.cs
- OverflowException.cs
- WmlSelectionListAdapter.cs
- OleDbConnectionInternal.cs
- MaskedTextBoxTextEditor.cs
- ListSortDescription.cs
- WizardPanel.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DelegatingTypeDescriptionProvider.cs
- LicenseException.cs
- UnicodeEncoding.cs
- FieldNameLookup.cs
- MasterPageBuildProvider.cs
- Win32Interop.cs
- BamlLocalizableResource.cs
- QilXmlReader.cs
- IERequestCache.cs
- FlowLayout.cs
- AspNetHostingPermission.cs
- SqlSelectClauseBuilder.cs
- AttachmentService.cs
- DrawingVisualDrawingContext.cs
- StateManagedCollection.cs
- AlternateViewCollection.cs
- ElementHostPropertyMap.cs
- ToolStripItemCollection.cs
- ApplicationGesture.cs
- RemoteX509AsymmetricSecurityKey.cs
- WindowsUpDown.cs
- LineVisual.cs
- ObjectDataSourceStatusEventArgs.cs
- ParentUndoUnit.cs
- MonthChangedEventArgs.cs
- ParameterBuilder.cs
- AudienceUriMode.cs
- SizeValueSerializer.cs
- ExpressionLink.cs
- SourceSwitch.cs
- MethodSignatureGenerator.cs
- DependencyProperty.cs
- FlowLayout.cs
- CodeDomDesignerLoader.cs
- XsltLibrary.cs
- TimelineGroup.cs
- BindingCollection.cs
- BigInt.cs
- WebUtil.cs
- WindowsGraphics2.cs
- PropertyEntry.cs
- ServiceBehaviorElementCollection.cs
- XsdBuildProvider.cs
- MenuAdapter.cs
- SendActivityDesignerTheme.cs