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
- TextTreeInsertUndoUnit.cs
- Binding.cs
- DataGridHelper.cs
- IItemProperties.cs
- CommandID.cs
- PingReply.cs
- SelectiveScrollingGrid.cs
- SystemIPv4InterfaceProperties.cs
- XmlSerializableWriter.cs
- FaultImportOptions.cs
- DesignTimeValidationFeature.cs
- WebPartDescription.cs
- MetadataPropertyAttribute.cs
- InvocationExpression.cs
- TextParagraph.cs
- Decoder.cs
- Figure.cs
- CodeGenerator.cs
- OdbcConnectionHandle.cs
- AutomationEvent.cs
- AutomationIdentifierGuids.cs
- ColorAnimationUsingKeyFrames.cs
- SapiRecognizer.cs
- ColorDialog.cs
- SelectedCellsChangedEventArgs.cs
- PnrpPermission.cs
- DbConnectionPoolIdentity.cs
- MethodBuilderInstantiation.cs
- AsnEncodedData.cs
- SmiXetterAccessMap.cs
- Menu.cs
- TraceHwndHost.cs
- WebPartRestoreVerb.cs
- EncoderExceptionFallback.cs
- SafeHGlobalHandleCritical.cs
- CacheRequest.cs
- BaseAppDomainProtocolHandler.cs
- COAUTHINFO.cs
- SemaphoreSecurity.cs
- TableAutomationPeer.cs
- SynchronizationLockException.cs
- ExceptionValidationRule.cs
- SystemInfo.cs
- ExeConfigurationFileMap.cs
- DataControlFieldHeaderCell.cs
- SimpleBitVector32.cs
- RefreshEventArgs.cs
- PropertySegmentSerializer.cs
- DataKeyCollection.cs
- ItemContainerPattern.cs
- DrawingImage.cs
- Point3DConverter.cs
- RangeValidator.cs
- AttributeUsageAttribute.cs
- Hyperlink.cs
- DataContractSerializerServiceBehavior.cs
- WebEvents.cs
- PictureBoxDesigner.cs
- UInt64Converter.cs
- GcHandle.cs
- StackBuilderSink.cs
- GroupQuery.cs
- TrackBar.cs
- ScriptResourceAttribute.cs
- SqlUnionizer.cs
- InkCanvasSelection.cs
- SegmentInfo.cs
- BackStopAuthenticationModule.cs
- DelegatingHeader.cs
- FromReply.cs
- transactioncontext.cs
- ContextMenu.cs
- FixedSOMFixedBlock.cs
- AttributeInfo.cs
- ErrorFormatterPage.cs
- CodeCatchClause.cs
- AuditLevel.cs
- ObjectSecurityT.cs
- ContextQuery.cs
- printdlgexmarshaler.cs
- Message.cs
- LocatorBase.cs
- CryptoProvider.cs
- EmptyQuery.cs
- ServicePointManager.cs
- ScrollChrome.cs
- newitemfactory.cs
- DecoderFallbackWithFailureFlag.cs
- DateTimeFormatInfoScanner.cs
- MessageTraceRecord.cs
- SecureUICommand.cs
- EncoderBestFitFallback.cs
- XmlDataSourceNodeDescriptor.cs
- TextRunTypographyProperties.cs
- NumericExpr.cs
- UInt16Storage.cs
- DictionaryContent.cs
- PerfService.cs
- PageParserFilter.cs
- EditorBrowsableAttribute.cs