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
- QueryComponents.cs
- DispatcherProcessingDisabled.cs
- Matrix3DStack.cs
- DataKey.cs
- RangeBaseAutomationPeer.cs
- SrgsRuleRef.cs
- ConfigurationElementCollection.cs
- DoubleAnimationUsingPath.cs
- loginstatus.cs
- WebPartCatalogCloseVerb.cs
- CompositeCollectionView.cs
- ContractListAdapter.cs
- SqlCharStream.cs
- XPathParser.cs
- SvcMapFileSerializer.cs
- SoundPlayerAction.cs
- TextDocumentView.cs
- SecurityStateEncoder.cs
- MainMenu.cs
- OdbcRowUpdatingEvent.cs
- RequestTimeoutManager.cs
- CollectionViewGroup.cs
- StyleCollection.cs
- ConfigsHelper.cs
- NetworkInformationPermission.cs
- CompositionAdorner.cs
- ModelFunctionTypeElement.cs
- RegistryDataKey.cs
- DataObjectMethodAttribute.cs
- ArgumentValueSerializer.cs
- SQLInt64Storage.cs
- ScalarConstant.cs
- Emitter.cs
- ITextView.cs
- SqlInternalConnectionTds.cs
- AppDomainCompilerProxy.cs
- DbConnectionPoolIdentity.cs
- CodeTypeDelegate.cs
- SourceFileInfo.cs
- ExpressionParser.cs
- DataBoundLiteralControl.cs
- Properties.cs
- Semaphore.cs
- TraceUtility.cs
- ChannelBinding.cs
- MaskedTextProvider.cs
- WebPartActionVerb.cs
- Inline.cs
- StrokeIntersection.cs
- httpapplicationstate.cs
- NumericUpDownAcceleration.cs
- TCPListener.cs
- ExpressionTextBox.xaml.cs
- RemotingException.cs
- UIInitializationException.cs
- TextRunProperties.cs
- CompilationLock.cs
- MarkupWriter.cs
- AncillaryOps.cs
- HyperLinkStyle.cs
- Policy.cs
- ReceiveContext.cs
- LocatorPart.cs
- TTSEngineProxy.cs
- PinnedBufferMemoryStream.cs
- AttributeTable.cs
- DocumentGrid.cs
- HttpCachePolicyElement.cs
- CustomActivityDesigner.cs
- ContextMarshalException.cs
- smtppermission.cs
- TableFieldsEditor.cs
- HttpFileCollection.cs
- GlyphRunDrawing.cs
- XmlSubtreeReader.cs
- PrintingPermission.cs
- ComponentEditorPage.cs
- AdRotatorDesigner.cs
- ButtonField.cs
- DataGridRowHeaderAutomationPeer.cs
- TextEditorLists.cs
- ParallelEnumerableWrapper.cs
- PageAdapter.cs
- MailWriter.cs
- OleDbParameter.cs
- SimpleHandlerFactory.cs
- StylusPointPropertyInfoDefaults.cs
- WebPartDisplayModeEventArgs.cs
- DataBoundLiteralControl.cs
- PixelFormats.cs
- XmlAttributeProperties.cs
- CommandPlan.cs
- Splitter.cs
- ManipulationLogic.cs
- EventLogger.cs
- SystemPens.cs
- HScrollBar.cs
- Mouse.cs
- ChangesetResponse.cs
- DefaultMergeHelper.cs