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
- NativeWindow.cs
- InternalBufferManager.cs
- MatrixIndependentAnimationStorage.cs
- ObjectDataSourceFilteringEventArgs.cs
- HtmlInputFile.cs
- CustomErrorCollection.cs
- Trigger.cs
- Activator.cs
- SeverityFilter.cs
- ListenerElementsCollection.cs
- infer.cs
- xmlsaver.cs
- PrimaryKeyTypeConverter.cs
- TrackBar.cs
- SecurityManager.cs
- EDesignUtil.cs
- NativeMethods.cs
- HashMembershipCondition.cs
- ParameterModifier.cs
- SiteMapNodeItemEventArgs.cs
- Number.cs
- DoubleLinkList.cs
- DataGridViewColumnCollection.cs
- SoapElementAttribute.cs
- DetailsViewDeleteEventArgs.cs
- ConfigViewGenerator.cs
- DataGridCellsPanel.cs
- SynchronizedMessageSource.cs
- WebConfigurationHost.cs
- FontWeights.cs
- TouchDevice.cs
- ExtensionQuery.cs
- Page.cs
- ColumnResizeUndoUnit.cs
- CultureNotFoundException.cs
- XmlIlTypeHelper.cs
- AliasedExpr.cs
- CachedBitmap.cs
- StateMachineSubscription.cs
- VisualStyleInformation.cs
- DesignerVerbToolStripMenuItem.cs
- OleDbParameter.cs
- GridViewUpdateEventArgs.cs
- SystemIcmpV6Statistics.cs
- RecognitionEventArgs.cs
- UIElement.cs
- DataGridDesigner.cs
- BoundPropertyEntry.cs
- complextypematerializer.cs
- Vector.cs
- CharacterBufferReference.cs
- SystemWebSectionGroup.cs
- DocumentSchemaValidator.cs
- EnumBuilder.cs
- EventData.cs
- DataObjectSettingDataEventArgs.cs
- ToolStripCustomTypeDescriptor.cs
- JobPageOrder.cs
- SyndicationFeed.cs
- RowParagraph.cs
- RtfToXamlReader.cs
- Vector3dCollection.cs
- ResourcePermissionBase.cs
- Environment.cs
- MetabaseSettings.cs
- COM2FontConverter.cs
- TcpProcessProtocolHandler.cs
- XPathNodeIterator.cs
- LinkTarget.cs
- CalendarDay.cs
- ToolBarOverflowPanel.cs
- HostingEnvironmentSection.cs
- SmtpReplyReaderFactory.cs
- XmlSchemaSet.cs
- DesignerSerializationVisibilityAttribute.cs
- MemoryMappedViewStream.cs
- ToolBarTray.cs
- DataControlImageButton.cs
- DashStyle.cs
- COM2ICategorizePropertiesHandler.cs
- ResetableIterator.cs
- RemoteWebConfigurationHostStream.cs
- MatrixUtil.cs
- HebrewNumber.cs
- AssemblyHash.cs
- CompilationSection.cs
- RoleGroupCollection.cs
- CapabilitiesState.cs
- CustomAssemblyResolver.cs
- MailMessageEventArgs.cs
- XmlName.cs
- EventLogEntryCollection.cs
- GradientStop.cs
- Solver.cs
- ConfigXmlReader.cs
- metadatamappinghashervisitor.cs
- AffineTransform3D.cs
- DataServiceEntityAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- GeneralTransform.cs