Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RouteItem.cs
- MarshalByValueComponent.cs
- ArraySubsetEnumerator.cs
- TreeView.cs
- BitmapEffectState.cs
- AuthenticationModulesSection.cs
- CellConstantDomain.cs
- AnnotationComponentChooser.cs
- _RequestCacheProtocol.cs
- HttpCookie.cs
- DiffuseMaterial.cs
- SortKey.cs
- CompositeDataBoundControl.cs
- thaishape.cs
- ExpressionReplacer.cs
- SoapDocumentServiceAttribute.cs
- SHA256Managed.cs
- SimpleTextLine.cs
- sitestring.cs
- QueryAsyncResult.cs
- AttachmentService.cs
- BaseUriHelper.cs
- CompModSwitches.cs
- Crc32Helper.cs
- OrderedEnumerableRowCollection.cs
- JsonSerializer.cs
- ConnectAlgorithms.cs
- ComPersistableTypeElementCollection.cs
- Rule.cs
- WebEventTraceProvider.cs
- TreeNodeBindingCollection.cs
- BufferBuilder.cs
- DbMetaDataColumnNames.cs
- precedingquery.cs
- WorkflowMessageEventHandler.cs
- TextParagraph.cs
- XamlStyleSerializer.cs
- TextDecorationUnitValidation.cs
- TableCellCollection.cs
- ApplicationActivator.cs
- HttpNamespaceReservationInstallComponent.cs
- ProcessInfo.cs
- ApplicationException.cs
- QuaternionKeyFrameCollection.cs
- SerializableAuthorizationContext.cs
- SelectionHighlightInfo.cs
- SizeFConverter.cs
- SimplePropertyEntry.cs
- DBDataPermissionAttribute.cs
- WrapperEqualityComparer.cs
- HighlightVisual.cs
- OdbcConnectionString.cs
- HttpListenerRequestTraceRecord.cs
- TokenizerHelper.cs
- WebPartDescriptionCollection.cs
- AdornerLayer.cs
- GridItemCollection.cs
- RotationValidation.cs
- MergablePropertyAttribute.cs
- ServiceModelExtensionElement.cs
- TdsParserSessionPool.cs
- ExpressionBuilder.cs
- __FastResourceComparer.cs
- DeviceContexts.cs
- MenuItemAutomationPeer.cs
- PageEventArgs.cs
- TryExpression.cs
- InputChannelAcceptor.cs
- Point3DCollectionConverter.cs
- IssuedTokenParametersEndpointAddressElement.cs
- WebControlParameterProxy.cs
- TakeOrSkipWhileQueryOperator.cs
- OutputCacheProfile.cs
- AnimatedTypeHelpers.cs
- Vector3dCollection.cs
- DelegatingConfigHost.cs
- DataGridViewControlCollection.cs
- ServiceMemoryGates.cs
- TdsParameterSetter.cs
- ColumnResizeAdorner.cs
- TripleDESCryptoServiceProvider.cs
- TextEditor.cs
- EnvironmentPermission.cs
- TcpChannelListener.cs
- Crc32Helper.cs
- ResourceFallbackManager.cs
- HashAlgorithm.cs
- ClockController.cs
- ExceptionHandler.cs
- CollectionViewGroup.cs
- TextParagraphCache.cs
- WrappedIUnknown.cs
- RenderOptions.cs
- Focus.cs
- XmlQueryOutput.cs
- Int32AnimationBase.cs
- SystemUdpStatistics.cs
- JoinCqlBlock.cs
- CapabilitiesRule.cs
- WindowsTab.cs