Code:
/ FX-1434 / FX-1434 / 1.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
- Thumb.cs
- EdmType.cs
- DtrList.cs
- EmitterCache.cs
- PropertyKey.cs
- Metadata.cs
- PropertyBuilder.cs
- BindingCompleteEventArgs.cs
- TextTreeFixupNode.cs
- HtmlSelect.cs
- WebServiceEnumData.cs
- SplitterEvent.cs
- DesignerForm.cs
- CriticalFinalizerObject.cs
- StatusBarPanelClickEvent.cs
- BinHexEncoding.cs
- ToolStripItemTextRenderEventArgs.cs
- Memoizer.cs
- DataBoundLiteralControl.cs
- ContextMenu.cs
- CharacterHit.cs
- DrawingVisualDrawingContext.cs
- XmlSerializerNamespaces.cs
- ContainerUIElement3D.cs
- PointHitTestResult.cs
- AutomationElement.cs
- ImageCodecInfoPrivate.cs
- TextBoxLine.cs
- ProtocolsConfigurationHandler.cs
- UserNameSecurityTokenAuthenticator.cs
- EntityModelBuildProvider.cs
- ContentElement.cs
- IdleTimeoutMonitor.cs
- safelink.cs
- PenContext.cs
- ColorConvertedBitmapExtension.cs
- URIFormatException.cs
- StringValidator.cs
- AnimationClock.cs
- MulticastOption.cs
- DefinitionBase.cs
- EdmSchemaError.cs
- SqlRecordBuffer.cs
- EdmItemCollection.OcAssemblyCache.cs
- SelectionListComponentEditor.cs
- ConditionalAttribute.cs
- DataGridRowEventArgs.cs
- TypedElement.cs
- MemberHolder.cs
- DecimalAnimation.cs
- _Events.cs
- PerspectiveCamera.cs
- TimeSpanValidatorAttribute.cs
- XamlSerializerUtil.cs
- HebrewCalendar.cs
- NativeBuffer.cs
- NumberFormatter.cs
- TypeConverterValueSerializer.cs
- QuadraticEase.cs
- ObjectDataSourceWizardForm.cs
- File.cs
- DataGridViewRowStateChangedEventArgs.cs
- Int32RectConverter.cs
- FilteredDataSetHelper.cs
- RawUIStateInputReport.cs
- ModelTreeManager.cs
- WebPartConnectionsCancelEventArgs.cs
- NullableBoolConverter.cs
- OracleTimeSpan.cs
- EnvironmentPermission.cs
- RuntimeIdentifierPropertyAttribute.cs
- PagerSettings.cs
- PipelineModuleStepContainer.cs
- StrokeCollectionConverter.cs
- SqlRetyper.cs
- CodeTypeConstructor.cs
- AsyncCompletedEventArgs.cs
- XNameTypeConverter.cs
- EncryptedData.cs
- DataServiceBehavior.cs
- AlternationConverter.cs
- DataBoundControl.cs
- EpmContentDeSerializer.cs
- Propagator.Evaluator.cs
- DataBindEngine.cs
- LayoutExceptionEventArgs.cs
- mediaeventargs.cs
- ScriptDescriptor.cs
- CodeCatchClauseCollection.cs
- QueryAsyncResult.cs
- StateDesigner.LayoutSelectionGlyph.cs
- TextMetrics.cs
- StringAnimationBase.cs
- AdPostCacheSubstitution.cs
- AmbientLight.cs
- BlobPersonalizationState.cs
- CustomWebEventKey.cs
- FileVersion.cs
- LiteralControl.cs
- CollectionChangeEventArgs.cs