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
- CodeIterationStatement.cs
- Parameter.cs
- CompositionDesigner.cs
- QilName.cs
- ImageAutomationPeer.cs
- FeatureSupport.cs
- RegexInterpreter.cs
- SoapProcessingBehavior.cs
- WindowsAuthenticationModule.cs
- CatalogPartDesigner.cs
- Point3DAnimationUsingKeyFrames.cs
- HandleCollector.cs
- SafeCryptContextHandle.cs
- IItemProperties.cs
- ConnectionConsumerAttribute.cs
- Viewport3DAutomationPeer.cs
- EnumBuilder.cs
- FontSourceCollection.cs
- SectionXmlInfo.cs
- DrawItemEvent.cs
- Script.cs
- SqlDataSourceSelectingEventArgs.cs
- FontResourceCache.cs
- WebPartExportVerb.cs
- WorkflowMarkupSerializer.cs
- MissingSatelliteAssemblyException.cs
- SafeRegistryHandle.cs
- StyleBamlRecordReader.cs
- TypeRestriction.cs
- OracleTimeSpan.cs
- RegexCapture.cs
- PaperSize.cs
- ACL.cs
- BulletedList.cs
- DragCompletedEventArgs.cs
- WrapPanel.cs
- Int32Rect.cs
- InternalBufferOverflowException.cs
- GrowingArray.cs
- HttpPostedFileWrapper.cs
- Set.cs
- PropertyFilterAttribute.cs
- RecordManager.cs
- TableLayoutRowStyleCollection.cs
- CopyAttributesAction.cs
- BamlLocalizableResource.cs
- DocumentPageTextView.cs
- ResourceDescriptionAttribute.cs
- SettingsSavedEventArgs.cs
- RulePatternOps.cs
- CollectionViewGroup.cs
- ApplicationBuildProvider.cs
- SqlTypeConverter.cs
- StopRoutingHandler.cs
- DesignerSerializationOptionsAttribute.cs
- OperatorExpressions.cs
- PerfService.cs
- CompilerScope.cs
- TreeNodeBindingCollection.cs
- ConfigXmlSignificantWhitespace.cs
- TypeSystem.cs
- DeviceContext.cs
- CryptoStream.cs
- ItemCollection.cs
- TextRangeEdit.cs
- OperationInfo.cs
- SupportingTokenSpecification.cs
- FixUp.cs
- ObjectManager.cs
- SystemFonts.cs
- EdmConstants.cs
- StorageAssociationTypeMapping.cs
- PageThemeBuildProvider.cs
- CacheHelper.cs
- MetabaseSettingsIis7.cs
- UserCancellationException.cs
- WebPartCloseVerb.cs
- EncodingInfo.cs
- MessageDescriptionCollection.cs
- VariableDesigner.xaml.cs
- PropertyToken.cs
- SafeHandles.cs
- ToolboxItemLoader.cs
- AsyncResult.cs
- BooleanAnimationBase.cs
- SchemaDeclBase.cs
- GZipDecoder.cs
- CustomWebEventKey.cs
- MessageQueueException.cs
- StagingAreaInputItem.cs
- ToolboxDataAttribute.cs
- Rotation3DAnimation.cs
- FloaterParaClient.cs
- Cursors.cs
- AuthenticationSection.cs
- pingexception.cs
- DependencyPropertyChangedEventArgs.cs
- FilterEventArgs.cs
- DuplicateWaitObjectException.cs
- CompatibleComparer.cs