Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElementCollection.cs / 1 / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _KerberosClient.cs
- Line.cs
- AttributeData.cs
- ConstructorBuilder.cs
- PrivilegeNotHeldException.cs
- MatrixTransform3D.cs
- AppDomainFactory.cs
- SystemIcmpV4Statistics.cs
- Tracer.cs
- OrderedHashRepartitionStream.cs
- CustomLineCap.cs
- NonParentingControl.cs
- FormViewModeEventArgs.cs
- BamlTreeNode.cs
- ObjectDataSourceStatusEventArgs.cs
- ErrorEventArgs.cs
- MessageDispatch.cs
- EllipticalNodeOperations.cs
- SchemaAttDef.cs
- ConfigXmlText.cs
- FreezableOperations.cs
- ClipboardProcessor.cs
- DesignTimeData.cs
- ItemChangedEventArgs.cs
- DataObjectEventArgs.cs
- SqlRecordBuffer.cs
- ScrollItemProviderWrapper.cs
- EntityDataSourceWrapperCollection.cs
- ToolStripButton.cs
- XhtmlConformanceSection.cs
- FontStretch.cs
- BaseAddressElementCollection.cs
- CircleHotSpot.cs
- LazyTextWriterCreator.cs
- RemotingException.cs
- DistributedTransactionPermission.cs
- uribuilder.cs
- TypeConverterMarkupExtension.cs
- counter.cs
- OleStrCAMarshaler.cs
- dataobject.cs
- Point4DConverter.cs
- NativeMethods.cs
- VisualSerializer.cs
- XsltContext.cs
- TdsParserStateObject.cs
- FixedPosition.cs
- SymmetricAlgorithm.cs
- WebPartDisplayModeCollection.cs
- KeyGestureConverter.cs
- DependencyObjectType.cs
- WebPartHelpVerb.cs
- IndentedWriter.cs
- WorkflowWebHostingModule.cs
- _FtpDataStream.cs
- AxHost.cs
- Configuration.cs
- LogRestartAreaEnumerator.cs
- Switch.cs
- RelatedView.cs
- SqlDependencyListener.cs
- HttpRequestTraceRecord.cs
- XPathArrayIterator.cs
- Header.cs
- Ray3DHitTestResult.cs
- TraceProvider.cs
- DockPanel.cs
- SharedPersonalizationStateInfo.cs
- CreateUserWizard.cs
- EditorOptionAttribute.cs
- ErrorFormatter.cs
- Point3DAnimation.cs
- RbTree.cs
- MarkupWriter.cs
- CustomPopupPlacement.cs
- ContentElement.cs
- QuaternionAnimation.cs
- ListItemParagraph.cs
- PartManifestEntry.cs
- EnvironmentPermission.cs
- CharConverter.cs
- DbDataRecord.cs
- SignatureDescription.cs
- ScaleTransform.cs
- MemberProjectionIndex.cs
- AuthenticationSection.cs
- SqlDeflator.cs
- ExpressionValueEditor.cs
- InputLanguageProfileNotifySink.cs
- DockEditor.cs
- InertiaExpansionBehavior.cs
- SimpleMailWebEventProvider.cs
- LinkConverter.cs
- NavigateUrlConverter.cs
- RegexRunnerFactory.cs
- CurrencyManager.cs
- WorkflowQueue.cs
- CodeExpressionCollection.cs
- QilLiteral.cs
- ControlPaint.cs