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
- DataGridViewColumnTypePicker.cs
- SharedPerformanceCounter.cs
- _LoggingObject.cs
- SchemaNotation.cs
- Assembly.cs
- odbcmetadatacollectionnames.cs
- XmlAttributeOverrides.cs
- BrowserCapabilitiesFactory.cs
- TextTreeObjectNode.cs
- MessageDispatch.cs
- EntityCommand.cs
- PropertyGridView.cs
- FrameworkTextComposition.cs
- ClientEndpointLoader.cs
- MethodExpr.cs
- ColorEditor.cs
- DrawingCollection.cs
- TableTextElementCollectionInternal.cs
- Task.cs
- PrivilegedConfigurationManager.cs
- ProfileBuildProvider.cs
- BitmapEffectCollection.cs
- GestureRecognitionResult.cs
- Grid.cs
- X509CertificateValidator.cs
- DecimalFormatter.cs
- CompareValidator.cs
- WebBrowsableAttribute.cs
- DataGridViewDataErrorEventArgs.cs
- DynamicObject.cs
- DataSourceSelectArguments.cs
- HandleExceptionArgs.cs
- UnknownBitmapDecoder.cs
- ExpandCollapseIsCheckedConverter.cs
- NativeCompoundFileAPIs.cs
- UserUseLicenseDictionaryLoader.cs
- InputProcessorProfilesLoader.cs
- ExclusiveHandleList.cs
- XmlSchemaComplexContentExtension.cs
- ProvidePropertyAttribute.cs
- Executor.cs
- GeometryDrawing.cs
- XPathNodeHelper.cs
- XmlSchemaDatatype.cs
- ClientRuntimeConfig.cs
- ServiceInfo.cs
- TextServicesCompartmentContext.cs
- NamespaceTable.cs
- ObjectCache.cs
- SelectionEditor.cs
- Propagator.ExtentPlaceholderCreator.cs
- ObjectStorage.cs
- GifBitmapEncoder.cs
- RemoteHelper.cs
- MenuItemStyle.cs
- SafeSecurityHandles.cs
- ExpressionVisitor.cs
- Decorator.cs
- ToolStripItemImageRenderEventArgs.cs
- SByteStorage.cs
- KnownColorTable.cs
- externdll.cs
- SocketElement.cs
- ContentDisposition.cs
- FontStretchConverter.cs
- AppDomainManager.cs
- Renderer.cs
- EditorPartCollection.cs
- ArithmeticException.cs
- XmlSequenceWriter.cs
- InvalidateEvent.cs
- Tuple.cs
- GridViewUpdatedEventArgs.cs
- TableLayoutPanel.cs
- Types.cs
- GlobalProxySelection.cs
- XmlSerializableReader.cs
- ViewStateModeByIdAttribute.cs
- ListViewItemMouseHoverEvent.cs
- LiteralControl.cs
- OutputScopeManager.cs
- Timeline.cs
- DBSqlParserTableCollection.cs
- TypeNameParser.cs
- OpenTypeLayoutCache.cs
- Camera.cs
- ContractNamespaceAttribute.cs
- SecurityCriticalDataForSet.cs
- RsaSecurityTokenAuthenticator.cs
- ColumnMapVisitor.cs
- SimpleApplicationHost.cs
- XmlExtensionFunction.cs
- TypeDescriptor.cs
- PathSegment.cs
- PrimitiveXmlSerializers.cs
- DriveInfo.cs
- DetailsViewModeEventArgs.cs
- ServiceBehaviorElement.cs
- Math.cs
- XmlObjectSerializerWriteContext.cs