Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- Classification.cs
- RelatedCurrencyManager.cs
- TextElement.cs
- OperationDescriptionCollection.cs
- Receive.cs
- ZipQueryOperator.cs
- WindowsIdentity.cs
- XmlDataSource.cs
- SqlWebEventProvider.cs
- RC2.cs
- DetailsViewUpdatedEventArgs.cs
- AdPostCacheSubstitution.cs
- LocatorPart.cs
- SettingsProperty.cs
- TextureBrush.cs
- PerformanceCounterPermission.cs
- MaskDescriptor.cs
- UpDownEvent.cs
- OptimalTextSource.cs
- ReferenceSchema.cs
- PartialCachingControl.cs
- FixedTextSelectionProcessor.cs
- PropertyItemInternal.cs
- CollectionView.cs
- HighContrastHelper.cs
- BinaryFormatterWriter.cs
- StretchValidation.cs
- DateTimeValueSerializerContext.cs
- WorkflowOperationInvoker.cs
- CompositeTypefaceMetrics.cs
- WaitHandleCannotBeOpenedException.cs
- ScriptMethodAttribute.cs
- WsatServiceCertificate.cs
- IgnoreSectionHandler.cs
- EncryptedXml.cs
- TimeoutTimer.cs
- DiscoveryEndpoint.cs
- ISCIIEncoding.cs
- XmlEntityReference.cs
- RemotingConfiguration.cs
- ServiceDescriptions.cs
- TableLayoutPanelCellPosition.cs
- PerfCounterSection.cs
- TextDecorations.cs
- TextRangeEdit.cs
- VBCodeProvider.cs
- HttpHandler.cs
- DetailsViewCommandEventArgs.cs
- RowParagraph.cs
- XmlSchemaValidator.cs
- SystemFonts.cs
- ExtendedProperty.cs
- UniqueEventHelper.cs
- XmlSiteMapProvider.cs
- ColorContextHelper.cs
- Panel.cs
- MethodToken.cs
- ParameterCollection.cs
- DiscreteKeyFrames.cs
- ListViewInsertEventArgs.cs
- PreviewPrintController.cs
- TaskDesigner.cs
- XmlNodeComparer.cs
- ReachDocumentReferenceSerializerAsync.cs
- StaticTextPointer.cs
- EventSource.cs
- AccessibleObject.cs
- ReferenceConverter.cs
- CookieHandler.cs
- AuthenticationConfig.cs
- Int32AnimationUsingKeyFrames.cs
- FrameSecurityDescriptor.cs
- VisualTarget.cs
- PropertiesTab.cs
- listitem.cs
- RowCache.cs
- BaseValidator.cs
- BackgroundWorker.cs
- CleanUpVirtualizedItemEventArgs.cs
- RegexReplacement.cs
- DependencyPropertyDescriptor.cs
- TextStore.cs
- NotifyInputEventArgs.cs
- XMLSyntaxException.cs
- GiveFeedbackEvent.cs
- PolicyUnit.cs
- MailAddressCollection.cs
- BuildProviderInstallComponent.cs
- RequestResizeEvent.cs
- SequenceQuery.cs
- WSSecureConversationDec2005.cs
- ParameterModifier.cs
- ResourcePart.cs
- TextBoxAutomationPeer.cs
- Content.cs
- CodeExpressionCollection.cs
- PreviewPageInfo.cs
- IntersectQueryOperator.cs
- ModulesEntry.cs
- StubHelpers.cs