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
- Function.cs
- PolyQuadraticBezierSegment.cs
- ScrollBarAutomationPeer.cs
- DocumentGridContextMenu.cs
- InvokeBase.cs
- XamlClipboardData.cs
- SpeechDetectedEventArgs.cs
- DataControlLinkButton.cs
- LinkLabelLinkClickedEvent.cs
- InputProcessorProfilesLoader.cs
- FullTextState.cs
- ProgressBar.cs
- TextureBrush.cs
- FormsAuthenticationTicket.cs
- SqlConnectionStringBuilder.cs
- ArgumentsParser.cs
- XmlDeclaration.cs
- DeferredElementTreeState.cs
- RemoteEndpointMessageProperty.cs
- ZoneMembershipCondition.cs
- Int32Animation.cs
- HttpApplicationFactory.cs
- NativeActivityContext.cs
- ObjectListField.cs
- PerformanceCounterPermission.cs
- ComponentCollection.cs
- DelegateSerializationHolder.cs
- InputScope.cs
- ImageConverter.cs
- BamlTreeMap.cs
- XamlVector3DCollectionSerializer.cs
- XmlSchemaAny.cs
- PropertyRecord.cs
- ColorTranslator.cs
- Globals.cs
- CellConstantDomain.cs
- CultureInfo.cs
- TemplateXamlParser.cs
- ObjectViewFactory.cs
- DateTimeConverter.cs
- WebPartEventArgs.cs
- WebProxyScriptElement.cs
- WindowsImpersonationContext.cs
- InProcStateClientManager.cs
- MsmqActivation.cs
- CommandHelpers.cs
- XsltFunctions.cs
- XmlAnyElementAttribute.cs
- ReliableReplySessionChannel.cs
- WindowsListViewItemCheckBox.cs
- LinkLabelLinkClickedEvent.cs
- RemotingConfiguration.cs
- FastPropertyAccessor.cs
- TemplateBamlTreeBuilder.cs
- TextTreeNode.cs
- CommandBinding.cs
- CustomError.cs
- Maps.cs
- TextSelection.cs
- ShapingWorkspace.cs
- DiscreteKeyFrames.cs
- ClientScriptManagerWrapper.cs
- PointKeyFrameCollection.cs
- VisualStyleRenderer.cs
- ControlPropertyNameConverter.cs
- DSASignatureFormatter.cs
- FreeFormDragDropManager.cs
- SrgsGrammarCompiler.cs
- DesignerListAdapter.cs
- ProviderBase.cs
- HttpWebResponse.cs
- ICollection.cs
- ExpressionLexer.cs
- XmlSchemaAnnotated.cs
- MulticastDelegate.cs
- TrackingProfile.cs
- DateTime.cs
- TargetInvocationException.cs
- InvocationExpression.cs
- MetadataException.cs
- IUnknownConstantAttribute.cs
- ProcessRequestArgs.cs
- DataGridColumnCollection.cs
- ServerIdentity.cs
- MethodToken.cs
- QilLiteral.cs
- CallInfo.cs
- XmlHierarchyData.cs
- OleDbEnumerator.cs
- TaskFormBase.cs
- DataGridViewImageCell.cs
- SetStoryboardSpeedRatio.cs
- EncoderExceptionFallback.cs
- BevelBitmapEffect.cs
- AutomationPatternInfo.cs
- HttpConfigurationContext.cs
- UpdatePanelTriggerCollection.cs
- FunctionMappingTranslator.cs
- ColumnPropertiesGroup.cs
- RelationshipDetailsRow.cs