Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElementCollection.cs / 1 / AuthenticationModuleElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(AuthenticationModuleElement))] public sealed class AuthenticationModuleElementCollection : ConfigurationElementCollection { public AuthenticationModuleElementCollection() { } public AuthenticationModuleElement this[int index] { get { return (AuthenticationModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new AuthenticationModuleElement this[string name] { get { return (AuthenticationModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(AuthenticationModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new AuthenticationModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((AuthenticationModuleElement)element).Key; } public int IndexOf(AuthenticationModuleElement element) { return BaseIndexOf(element); } public void Remove(AuthenticationModuleElement 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(AuthenticationModuleElement))] public sealed class AuthenticationModuleElementCollection : ConfigurationElementCollection { public AuthenticationModuleElementCollection() { } public AuthenticationModuleElement this[int index] { get { return (AuthenticationModuleElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new AuthenticationModuleElement this[string name] { get { return (AuthenticationModuleElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(AuthenticationModuleElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new AuthenticationModuleElement(); } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) throw new ArgumentNullException("element"); return ((AuthenticationModuleElement)element).Key; } public int IndexOf(AuthenticationModuleElement element) { return BaseIndexOf(element); } public void Remove(AuthenticationModuleElement 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
- NotCondition.cs
- FtpRequestCacheValidator.cs
- XmlSchemaSimpleTypeUnion.cs
- PrintController.cs
- DbDataAdapter.cs
- SuppressMessageAttribute.cs
- DescendentsWalker.cs
- ConfigurationLocation.cs
- ListViewDeletedEventArgs.cs
- ModuleConfigurationInfo.cs
- Int64AnimationBase.cs
- SrgsGrammarCompiler.cs
- ResourceManager.cs
- OdbcRowUpdatingEvent.cs
- PersistChildrenAttribute.cs
- ErrorRuntimeConfig.cs
- InputBuffer.cs
- _TLSstream.cs
- ClientScriptItemCollection.cs
- StreamAsIStream.cs
- SBCSCodePageEncoding.cs
- StyleSheetComponentEditor.cs
- IisTraceWebEventProvider.cs
- ConsoleCancelEventArgs.cs
- SchemaImporter.cs
- SemanticKeyElement.cs
- WindowsListBox.cs
- TypeAccessException.cs
- AnimationException.cs
- EventWaitHandle.cs
- MultiDataTrigger.cs
- XpsSerializationException.cs
- NamespaceQuery.cs
- MethodBuilderInstantiation.cs
- WebPartVerb.cs
- TextEffect.cs
- GridViewCommandEventArgs.cs
- DesignTable.cs
- TextFormatterContext.cs
- ContractComponent.cs
- controlskin.cs
- CriticalExceptions.cs
- SharedConnectionWorkflowTransactionService.cs
- WebControlsSection.cs
- ObjectReaderCompiler.cs
- ConfigurationLocation.cs
- ScrollEvent.cs
- WebPartsPersonalizationAuthorization.cs
- DataGridColumnCollection.cs
- HwndPanningFeedback.cs
- Empty.cs
- WindowCollection.cs
- XPathNavigatorKeyComparer.cs
- CompleteWizardStep.cs
- LayoutTableCell.cs
- ViewLoader.cs
- ActivityCodeGenerator.cs
- SqlLiftWhereClauses.cs
- ObjectAssociationEndMapping.cs
- BoolExpressionVisitors.cs
- ReflectEventDescriptor.cs
- XslAst.cs
- OuterGlowBitmapEffect.cs
- DependencyPropertyConverter.cs
- ContentControl.cs
- FixedSOMTable.cs
- RedistVersionInfo.cs
- RangeContentEnumerator.cs
- SafeHandles.cs
- OleDbEnumerator.cs
- Html32TextWriter.cs
- DependencyObjectPropertyDescriptor.cs
- baseaxisquery.cs
- ProxyElement.cs
- ToolTipAutomationPeer.cs
- RegexTypeEditor.cs
- DirectoryNotFoundException.cs
- Material.cs
- dbenumerator.cs
- Duration.cs
- Pkcs7Recipient.cs
- AssemblyName.cs
- BaseEntityWrapper.cs
- TextCollapsingProperties.cs
- SqlNodeAnnotation.cs
- WebPartDisplayModeEventArgs.cs
- KeyedCollection.cs
- ChannelDispatcherCollection.cs
- URLMembershipCondition.cs
- DataSourceGeneratorException.cs
- HttpConfigurationSystem.cs
- XhtmlBasicPageAdapter.cs
- CultureInfo.cs
- DurableInstance.cs
- XmlNodeComparer.cs
- WinEventWrap.cs
- SubqueryRules.cs
- PrimitiveXmlSerializers.cs
- PeerApplicationLaunchInfo.cs
- ServiceDiscoveryElement.cs