Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElementCollection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormConverter.cs
- basevalidator.cs
- SqlPersonalizationProvider.cs
- RouteParser.cs
- ClickablePoint.cs
- FormClosedEvent.cs
- DesignerCalendarAdapter.cs
- BasePattern.cs
- SQLBoolean.cs
- WebConfigurationHostFileChange.cs
- WebPartPersonalization.cs
- FormsIdentity.cs
- Peer.cs
- log.cs
- PeerNodeTraceRecord.cs
- MimeFormatExtensions.cs
- ElementNotEnabledException.cs
- SemanticTag.cs
- FileLogRecord.cs
- RenderData.cs
- ProjectionCamera.cs
- ResourceDictionary.cs
- DbReferenceCollection.cs
- BehaviorEditorPart.cs
- PackUriHelper.cs
- ImageCodecInfo.cs
- ExpressionLink.cs
- IdentityHolder.cs
- DataFormat.cs
- GcHandle.cs
- XmlSequenceWriter.cs
- TextBlock.cs
- ChangeTracker.cs
- ExceptionDetail.cs
- FollowerQueueCreator.cs
- XmlTextReaderImpl.cs
- TextRange.cs
- SchemaNamespaceManager.cs
- StaticExtension.cs
- ListViewSelectEventArgs.cs
- SocketAddress.cs
- CompilerHelpers.cs
- BatchParser.cs
- RenderData.cs
- SoapIgnoreAttribute.cs
- TextBoxLine.cs
- CloudCollection.cs
- QueryStringParameter.cs
- PropertyGridEditorPart.cs
- PbrsForward.cs
- InvokeBase.cs
- ConsumerConnectionPointCollection.cs
- OdbcException.cs
- ThemeInfoAttribute.cs
- RadialGradientBrush.cs
- _ScatterGatherBuffers.cs
- X509PeerCertificateAuthentication.cs
- RoleService.cs
- XmlWrappingReader.cs
- CompilerTypeWithParams.cs
- TypeSystem.cs
- Matrix.cs
- HuffmanTree.cs
- WebPartEditorCancelVerb.cs
- FixedDSBuilder.cs
- Switch.cs
- DelayDesigner.cs
- HtmlInputFile.cs
- ResponseBodyWriter.cs
- UpdateProgress.cs
- OSFeature.cs
- Bidi.cs
- SafeSecurityHandles.cs
- MonitoringDescriptionAttribute.cs
- BackgroundWorker.cs
- SessionPageStatePersister.cs
- SafeMILHandle.cs
- TreeViewEvent.cs
- SharedHttpTransportManager.cs
- Command.cs
- CacheRequest.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ManifestResourceInfo.cs
- Model3DCollection.cs
- OledbConnectionStringbuilder.cs
- FieldNameLookup.cs
- webproxy.cs
- XmlSchemaRedefine.cs
- panel.cs
- CollectionsUtil.cs
- DataServiceProcessingPipelineEventArgs.cs
- SoapFormatExtensions.cs
- WebScriptMetadataInstanceContextProvider.cs
- Trace.cs
- EventLogPermissionEntry.cs
- PolicyLevel.cs
- SupportsEventValidationAttribute.cs
- MasterPage.cs
- MessageAction.cs
- CopyNodeSetAction.cs