Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XomlCompilerError.cs
- TextRunCache.cs
- TdsValueSetter.cs
- Keywords.cs
- JapaneseCalendar.cs
- HttpDebugHandler.cs
- RemoteX509AsymmetricSecurityKey.cs
- DataMisalignedException.cs
- RequestCacheManager.cs
- ClientProtocol.cs
- ListMarkerLine.cs
- TraceRecords.cs
- DataGridViewCellStyleConverter.cs
- PreviewPageInfo.cs
- PolyQuadraticBezierSegment.cs
- TraceLevelStore.cs
- DecimalConstantAttribute.cs
- SystemTcpStatistics.cs
- ToolStripMenuItemDesigner.cs
- arabicshape.cs
- TraceRecord.cs
- ObsoleteAttribute.cs
- Attributes.cs
- VBIdentifierDesigner.xaml.cs
- DrawingState.cs
- Vector3DValueSerializer.cs
- TreeNodeConverter.cs
- SqlMetaData.cs
- PrtCap_Reader.cs
- Converter.cs
- DataViewManager.cs
- MediaContext.cs
- HandlerMappingMemo.cs
- XmlReflectionMember.cs
- ConfigurationStrings.cs
- RedirectionProxy.cs
- CachedRequestParams.cs
- FontStretches.cs
- Delegate.cs
- Win32PrintDialog.cs
- SoapIgnoreAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Activator.cs
- NamedPipeTransportSecurity.cs
- AtomEntry.cs
- SiteMapHierarchicalDataSourceView.cs
- Stylus.cs
- SqlAliaser.cs
- SdlChannelSink.cs
- ImportCatalogPart.cs
- Site.cs
- SocketException.cs
- DataKey.cs
- mongolianshape.cs
- Tag.cs
- HttpRequestCacheValidator.cs
- ProviderException.cs
- SimpleMailWebEventProvider.cs
- log.cs
- QueryParameter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- RegexRunnerFactory.cs
- WindowsFormsSynchronizationContext.cs
- PartitionResolver.cs
- ImageBrush.cs
- DocumentCollection.cs
- ToolStripOverflowButton.cs
- ConfigurationStrings.cs
- AQNBuilder.cs
- GregorianCalendar.cs
- CultureInfoConverter.cs
- ConnectionManagementSection.cs
- WebAdminConfigurationHelper.cs
- RuntimeResourceSet.cs
- DrawingContext.cs
- XmlExtensionFunction.cs
- LineVisual.cs
- XmlCDATASection.cs
- MemberInfoSerializationHolder.cs
- XmlMtomReader.cs
- TextEditorCopyPaste.cs
- cookie.cs
- ScriptManager.cs
- KeyTimeConverter.cs
- WhiteSpaceTrimStringConverter.cs
- PenThread.cs
- UIHelper.cs
- DataGridItemEventArgs.cs
- EntityViewGenerationAttribute.cs
- AppDomain.cs
- Trace.cs
- ListBindableAttribute.cs
- HashRepartitionEnumerator.cs
- StreamAsIStream.cs
- AppDomainUnloadedException.cs
- SkipQueryOptionExpression.cs
- COAUTHIDENTITY.cs
- SHA512.cs
- FixedNode.cs
- AssemblyBuilderData.cs