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
- InvalidFilterCriteriaException.cs
- WindowsGraphics2.cs
- OleDbParameterCollection.cs
- PropertyConverter.cs
- FileDialogPermission.cs
- httpapplicationstate.cs
- Attributes.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Workspace.cs
- SmtpTransport.cs
- VisualTarget.cs
- DiscoveryInnerClientAdhocCD1.cs
- SqlClientFactory.cs
- AssemblyNameUtility.cs
- LinqDataSourceContextEventArgs.cs
- PersonalizableAttribute.cs
- WebPartChrome.cs
- _StreamFramer.cs
- CallbackValidator.cs
- DependencyPropertyChangedEventArgs.cs
- MemberDomainMap.cs
- StrokeCollection.cs
- CodeCatchClause.cs
- TextSerializer.cs
- FieldDescriptor.cs
- CheckBoxAutomationPeer.cs
- XmlSiteMapProvider.cs
- HttpWebRequestElement.cs
- EdmFunction.cs
- _SSPIWrapper.cs
- Executor.cs
- FileDialog_Vista.cs
- ValueProviderWrapper.cs
- NumberFormatInfo.cs
- DataGridViewLinkCell.cs
- IPAddress.cs
- TheQuery.cs
- SendingRequestEventArgs.cs
- Stylus.cs
- HtmlTableCellCollection.cs
- RootNamespaceAttribute.cs
- CompositeFontInfo.cs
- CompiledRegexRunnerFactory.cs
- PointLightBase.cs
- MessageBox.cs
- DragDrop.cs
- ReferenceService.cs
- XamlHostingSection.cs
- _NestedSingleAsyncResult.cs
- SqlServices.cs
- DocumentApplication.cs
- AdornerPresentationContext.cs
- AdapterUtil.cs
- TreeView.cs
- BufferedGraphics.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- MethodAccessException.cs
- IItemProperties.cs
- IndicFontClient.cs
- documentation.cs
- CustomPopupPlacement.cs
- XmlTextReader.cs
- EnumDataContract.cs
- TypeSystem.cs
- Viewport3DAutomationPeer.cs
- GeometryHitTestResult.cs
- XmlILOptimizerVisitor.cs
- EdmFunction.cs
- SettingsSection.cs
- BulletChrome.cs
- BasicExpandProvider.cs
- NativeObjectSecurity.cs
- TypeForwardedToAttribute.cs
- BatchServiceHost.cs
- AbandonedMutexException.cs
- URLIdentityPermission.cs
- XslTransform.cs
- WindowsClaimSet.cs
- ToolStripCollectionEditor.cs
- Group.cs
- DBConnection.cs
- AudioDeviceOut.cs
- DataGridViewColumnDesigner.cs
- Exceptions.cs
- HttpClientCertificate.cs
- AttributeQuery.cs
- ConfigXmlAttribute.cs
- XPathNodeIterator.cs
- BrowserCapabilitiesFactoryBase.cs
- CmsInterop.cs
- BufferedGraphicsContext.cs
- translator.cs
- XmlDocumentFieldSchema.cs
- Debugger.cs
- WebBrowserProgressChangedEventHandler.cs
- GridViewColumnCollection.cs
- SqlMethodCallConverter.cs
- GeometryDrawing.cs
- DESCryptoServiceProvider.cs
- FlowDocumentScrollViewerAutomationPeer.cs