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
- SqlProcedureAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- _NegotiateClient.cs
- ClockController.cs
- TextDecorationCollection.cs
- StringUtil.cs
- DownloadProgressEventArgs.cs
- TileBrush.cs
- NetworkInformationException.cs
- StorageEntityTypeMapping.cs
- PenContext.cs
- PartialCachingAttribute.cs
- QueryOptionExpression.cs
- NodeInfo.cs
- CryptoConfig.cs
- XmlEnumAttribute.cs
- Span.cs
- MediaContext.cs
- AstNode.cs
- ParallelTimeline.cs
- SourceElementsCollection.cs
- MiniAssembly.cs
- ByeOperationCD1AsyncResult.cs
- CopyNodeSetAction.cs
- Errors.cs
- RichTextBoxConstants.cs
- AnonymousIdentificationModule.cs
- ParameterCollection.cs
- _FixedSizeReader.cs
- XmlWriter.cs
- QilReplaceVisitor.cs
- TextTrailingCharacterEllipsis.cs
- BufferModeSettings.cs
- TableCellCollection.cs
- RectAnimationUsingKeyFrames.cs
- QueryableDataSourceEditData.cs
- InstanceNormalEvent.cs
- TypeExtensionSerializer.cs
- EntityClientCacheEntry.cs
- HttpListenerResponse.cs
- HttpSysSettings.cs
- UIElement3D.cs
- SqlFunctionAttribute.cs
- ListBoxItemAutomationPeer.cs
- ButtonAutomationPeer.cs
- IPCCacheManager.cs
- DetailsViewUpdateEventArgs.cs
- Environment.cs
- UInt32.cs
- ColumnReorderedEventArgs.cs
- StyleSheetComponentEditor.cs
- Message.cs
- TableLayoutStyle.cs
- DbDataSourceEnumerator.cs
- safemediahandle.cs
- StringUtil.cs
- CompiledQueryCacheEntry.cs
- ActivationArguments.cs
- DoubleConverter.cs
- DataAccessor.cs
- _AcceptOverlappedAsyncResult.cs
- Viewport3DVisual.cs
- XsltContext.cs
- HandlerBase.cs
- StickyNoteContentControl.cs
- HtmlInputButton.cs
- DataTrigger.cs
- NotifyIcon.cs
- TextEditorThreadLocalStore.cs
- InputReferenceExpression.cs
- ObjectItemAttributeAssemblyLoader.cs
- ScriptReferenceBase.cs
- SafeArrayRankMismatchException.cs
- XmlSchemaSimpleTypeRestriction.cs
- TableColumnCollectionInternal.cs
- StylusPointProperty.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- VScrollProperties.cs
- TrackingServices.cs
- WebDescriptionAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- DbResourceAllocator.cs
- UpDownBase.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- XmlSchemaValidator.cs
- AccessViolationException.cs
- NullReferenceException.cs
- CallbackException.cs
- SQLChars.cs
- IsolatedStorage.cs
- XmlHierarchicalEnumerable.cs
- ColorKeyFrameCollection.cs
- ChangeInterceptorAttribute.cs
- ModelItemDictionaryImpl.cs
- BackgroundWorker.cs
- SrgsElementFactoryCompiler.cs
- ComponentDispatcherThread.cs
- OdbcDataAdapter.cs
- LinearGradientBrush.cs
- XamlFigureLengthSerializer.cs