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
- Win32Exception.cs
- BitmapSource.cs
- ProxyGenerator.cs
- X509CertificateEndpointIdentity.cs
- PropertyState.cs
- TreeNodeBindingCollection.cs
- ImportContext.cs
- ProtocolInformationReader.cs
- AlternationConverter.cs
- OdbcError.cs
- Control.cs
- COM2ComponentEditor.cs
- SoapProtocolImporter.cs
- HtmlWindow.cs
- PersonalizationProvider.cs
- NavigatorOutput.cs
- Registry.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- RecommendedAsConfigurableAttribute.cs
- Int32Collection.cs
- assemblycache.cs
- CroppedBitmap.cs
- ItemsPanelTemplate.cs
- InkPresenter.cs
- OleDbException.cs
- WebPartConnectVerb.cs
- BamlReader.cs
- ExtensionDataReader.cs
- Application.cs
- ValidationResult.cs
- Switch.cs
- EntityKey.cs
- HebrewCalendar.cs
- CustomErrorCollection.cs
- X509Chain.cs
- GridViewAutomationPeer.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- followingquery.cs
- Missing.cs
- DefaultValueConverter.cs
- BaseTransportHeaders.cs
- Opcode.cs
- CrossAppDomainChannel.cs
- DSASignatureFormatter.cs
- DocumentManager.cs
- DataSvcMapFile.cs
- Registry.cs
- CompilationPass2TaskInternal.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MatrixTransform.cs
- TypeToTreeConverter.cs
- LoadedOrUnloadedOperation.cs
- Block.cs
- UDPClient.cs
- ColorDialog.cs
- userdatakeys.cs
- DisposableCollectionWrapper.cs
- SortedDictionary.cs
- HttpContext.cs
- shaper.cs
- CodeRemoveEventStatement.cs
- hwndwrapper.cs
- XsdDateTime.cs
- PersonalizationState.cs
- CellTreeNodeVisitors.cs
- LightweightEntityWrapper.cs
- Button.cs
- DataGridViewLinkCell.cs
- FixedSOMElement.cs
- ValidationPropertyAttribute.cs
- ServiceOperation.cs
- _SslStream.cs
- DataGridViewComboBoxColumn.cs
- SignedXml.cs
- DrawingBrush.cs
- TdsParameterSetter.cs
- VirtualDirectoryMapping.cs
- ListControlDataBindingHandler.cs
- Exception.cs
- NullableFloatAverageAggregationOperator.cs
- PathFigure.cs
- EntitySetDataBindingList.cs
- BackStopAuthenticationModule.cs
- Queue.cs
- ConfigXmlReader.cs
- SoapHeader.cs
- TreeViewCancelEvent.cs
- XmlNavigatorFilter.cs
- EntityContainer.cs
- Brushes.cs
- X509ThumbprintKeyIdentifierClause.cs
- SqlRowUpdatedEvent.cs
- PinnedBufferMemoryStream.cs
- AsymmetricKeyExchangeFormatter.cs
- MimeMultiPart.cs
- OrderedDictionaryStateHelper.cs
- SizeF.cs
- SHA1Managed.cs
- MgmtResManager.cs
- Properties.cs