Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / BypassElementCollection.cs / 1 / BypassElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(BypassElement))] public sealed class BypassElementCollection : ConfigurationElementCollection { public BypassElementCollection() { } public BypassElement this[int index] { get { return (BypassElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new BypassElement this[string name] { get { return (BypassElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(BypassElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new BypassElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((BypassElement)element).Key; } public int IndexOf(BypassElement element) { return BaseIndexOf(element); } public void Remove(BypassElement 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); } // Since, ByPassElementCollection is a simple list with add/remove functionality, // we now never throw on duplicate entries just for this collection. This also // allows to keep Everett compatibility. // protected override bool ThrowOnDuplicate { get { return false; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableSectionStyle.cs
- ListDictionaryInternal.cs
- ResourceManagerWrapper.cs
- fixedPageContentExtractor.cs
- CommandHelper.cs
- Tablet.cs
- ProtocolsInstallComponent.cs
- GridViewUpdateEventArgs.cs
- HttpPostServerProtocol.cs
- WindowsAuthenticationModule.cs
- TileBrush.cs
- SiteMapNodeItemEventArgs.cs
- SqlReorderer.cs
- PrinterSettings.cs
- PointCollection.cs
- ContainerCodeDomSerializer.cs
- GraphicsContainer.cs
- Model3D.cs
- DesigntimeLicenseContext.cs
- ContentType.cs
- __TransparentProxy.cs
- SqlDependency.cs
- Main.cs
- sqlmetadatafactory.cs
- DbParameterHelper.cs
- MessageQueueKey.cs
- DetailsView.cs
- Subset.cs
- EntitySqlQueryCacheEntry.cs
- WinEventHandler.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PolicyManager.cs
- CompilerInfo.cs
- WebPartMinimizeVerb.cs
- LookupNode.cs
- SymmetricAlgorithm.cs
- DataGridRow.cs
- BaseCodeDomTreeGenerator.cs
- RepeaterItem.cs
- WhileDesigner.cs
- UidManager.cs
- RecipientInfo.cs
- BlurEffect.cs
- HwndHost.cs
- CustomActivityDesigner.cs
- PersonalizationDictionary.cs
- ProvideValueServiceProvider.cs
- WeakReferenceEnumerator.cs
- Speller.cs
- ObfuscateAssemblyAttribute.cs
- ReversePositionQuery.cs
- XPathNodePointer.cs
- UserPersonalizationStateInfo.cs
- FamilyCollection.cs
- URI.cs
- ServiceHttpHandlerFactory.cs
- AlternationConverter.cs
- AsymmetricSignatureDeformatter.cs
- ToolStripContentPanel.cs
- WebBaseEventKeyComparer.cs
- GrammarBuilder.cs
- Rule.cs
- datacache.cs
- XmlTextAttribute.cs
- DecoderNLS.cs
- DefaultBindingPropertyAttribute.cs
- ExpressionParser.cs
- KnownColorTable.cs
- SliderAutomationPeer.cs
- BaseResourcesBuildProvider.cs
- DesignerTextBoxAdapter.cs
- DeviceContext.cs
- WebPageTraceListener.cs
- InvalidateEvent.cs
- TableRowGroup.cs
- TemplateControlCodeDomTreeGenerator.cs
- recordstatefactory.cs
- AppSettingsSection.cs
- UICuesEvent.cs
- FacetDescriptionElement.cs
- XmlAttributeCache.cs
- DBDataPermissionAttribute.cs
- DecimalSumAggregationOperator.cs
- PasswordRecovery.cs
- Point3D.cs
- BooleanKeyFrameCollection.cs
- MsmqOutputMessage.cs
- FamilyMap.cs
- rsa.cs
- AmbientLight.cs
- TextLine.cs
- DataGridTextBoxColumn.cs
- SpeechRecognizer.cs
- _UriSyntax.cs
- Viewport3DAutomationPeer.cs
- KeyInstance.cs
- TemplatedAdorner.cs
- EventMap.cs
- TemplatingOptionsDialog.cs
- WindowsToolbarAsMenu.cs