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
- EventSetter.cs
- WorkflowServiceHostFactory.cs
- XmlNodeList.cs
- ActivityExecutorDelegateInfo.cs
- FrameworkContentElementAutomationPeer.cs
- HttpModuleAction.cs
- DragDeltaEventArgs.cs
- ErrorHandlingAcceptor.cs
- FormCollection.cs
- ClassicBorderDecorator.cs
- ScrollViewerAutomationPeer.cs
- WsatAdminException.cs
- ImplicitInputBrush.cs
- DateTimeFormatInfoScanner.cs
- InstanceDataCollection.cs
- EventTrigger.cs
- NativeWindow.cs
- HwndAppCommandInputProvider.cs
- GridViewDeleteEventArgs.cs
- Monitor.cs
- ToolStripSplitStackLayout.cs
- DropShadowEffect.cs
- WriteableBitmap.cs
- TreeNodeBindingCollection.cs
- Point3DAnimationBase.cs
- ExpressionPrinter.cs
- TreeView.cs
- GenericWebPart.cs
- CompilerResults.cs
- BuildProviderUtils.cs
- SafeNativeMethods.cs
- DropDownButton.cs
- ArrayList.cs
- MissingFieldException.cs
- TabControlCancelEvent.cs
- InvalidPrinterException.cs
- WindowPatternIdentifiers.cs
- MemberJoinTreeNode.cs
- DefaultCommandConverter.cs
- SmtpTransport.cs
- List.cs
- coordinatorscratchpad.cs
- OutputScopeManager.cs
- PropertyDescriptorCollection.cs
- IPPacketInformation.cs
- IntellisenseTextBox.designer.cs
- GroupItemAutomationPeer.cs
- InvalidPrinterException.cs
- CodeSnippetStatement.cs
- MultiSelector.cs
- TraceSection.cs
- CompModSwitches.cs
- KeyedCollection.cs
- XmlNodeChangedEventManager.cs
- RegexStringValidator.cs
- DecoratedNameAttribute.cs
- QilSortKey.cs
- DropShadowBitmapEffect.cs
- EntityConnectionStringBuilder.cs
- ResourcesBuildProvider.cs
- DictionarySectionHandler.cs
- ConsoleEntryPoint.cs
- ScriptingAuthenticationServiceSection.cs
- UdpMessageProperty.cs
- UpdatePanel.cs
- DynamicPropertyHolder.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- FormatConvertedBitmap.cs
- JournalEntryListConverter.cs
- FontStyle.cs
- RowParagraph.cs
- __Filters.cs
- MimeObjectFactory.cs
- ListControlDesigner.cs
- HttpListenerRequest.cs
- UidManager.cs
- TextTreeFixupNode.cs
- TraceContextRecord.cs
- NamedPipeAppDomainProtocolHandler.cs
- DomainUpDown.cs
- SimpleApplicationHost.cs
- ResXResourceWriter.cs
- Range.cs
- BuildProviderUtils.cs
- PropertyMetadata.cs
- AnchoredBlock.cs
- XmlSerializerAssemblyAttribute.cs
- ExpandoClass.cs
- DataGridViewCellPaintingEventArgs.cs
- GridViewCellAutomationPeer.cs
- Attribute.cs
- ProfileBuildProvider.cs
- CanonicalizationDriver.cs
- FrameworkElementFactory.cs
- FullTextLine.cs
- InputMethod.cs
- ListViewItemSelectionChangedEvent.cs
- BaseCodePageEncoding.cs
- UnmanagedMemoryStream.cs
- ValidationHelper.cs