Code:
/ DotNET / DotNET / 8.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
- XmlDesignerDataSourceView.cs
- listitem.cs
- QueryOpcode.cs
- WorkflowRuntimeServiceElement.cs
- TextBoxRenderer.cs
- MsmqBindingFilter.cs
- MsmqTransportBindingElement.cs
- UserControlParser.cs
- GridView.cs
- HtmlControl.cs
- Stackframe.cs
- Visual.cs
- HttpCookieCollection.cs
- ContentElement.cs
- RectangleF.cs
- SetterTriggerConditionValueConverter.cs
- FocusWithinProperty.cs
- CDSsyncETWBCLProvider.cs
- AjaxFrameworkAssemblyAttribute.cs
- lengthconverter.cs
- XmlMapping.cs
- OdbcConnectionString.cs
- SqlDataReaderSmi.cs
- XmlRawWriterWrapper.cs
- DocumentAutomationPeer.cs
- StringValidator.cs
- PrintDialog.cs
- ConfigXmlWhitespace.cs
- SettingsPropertyValue.cs
- IgnorePropertiesAttribute.cs
- BuildProviderUtils.cs
- RectangleGeometry.cs
- ProxyWebPart.cs
- RowsCopiedEventArgs.cs
- SafeCertificateContext.cs
- DataComponentGenerator.cs
- ColumnMapTranslator.cs
- XmlNode.cs
- ComponentDispatcherThread.cs
- Divide.cs
- ReaderOutput.cs
- DBSchemaRow.cs
- LayoutEngine.cs
- RequestCacheValidator.cs
- MetadataPropertyvalue.cs
- ThreadAttributes.cs
- _FtpControlStream.cs
- SelectionListComponentEditor.cs
- SecurityPermission.cs
- TypeUnloadedException.cs
- WebPartVerb.cs
- XamlReaderHelper.cs
- XmlStreamStore.cs
- ButtonFlatAdapter.cs
- Identifier.cs
- SQLInt16Storage.cs
- TdsEnums.cs
- InfoCardRSACryptoProvider.cs
- File.cs
- SourceFileInfo.cs
- DefaultValidator.cs
- UseLicense.cs
- CodePrimitiveExpression.cs
- MiniLockedBorderGlyph.cs
- ManipulationPivot.cs
- ScrollableControl.cs
- DefaultAutoFieldGenerator.cs
- RowToFieldTransformer.cs
- RadioButtonStandardAdapter.cs
- Attachment.cs
- OptionalColumn.cs
- RtfToXamlLexer.cs
- HelpInfo.cs
- MessageQueueCriteria.cs
- MetadataItemSerializer.cs
- DirectionalLight.cs
- ExpressionPrefixAttribute.cs
- LoginUtil.cs
- AutomationPeer.cs
- ToolStripItemCollection.cs
- ObjectContextServiceProvider.cs
- MsmqBindingElementBase.cs
- ShaderEffect.cs
- DiagnosticTraceSource.cs
- GridViewAutomationPeer.cs
- DBConnection.cs
- Html32TextWriter.cs
- ImportedNamespaceContextItem.cs
- DayRenderEvent.cs
- ParameterCollection.cs
- DynamicScriptObject.cs
- PinnedBufferMemoryStream.cs
- StyleReferenceConverter.cs
- WebPartTransformerAttribute.cs
- SrgsSubset.cs
- Message.cs
- TypeGeneratedEventArgs.cs
- RuntimeHelpers.cs
- SelectionGlyphBase.cs
- OutputCacheEntry.cs