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
- Speller.cs
- PrePrepareMethodAttribute.cs
- CompressEmulationStream.cs
- AsyncResult.cs
- PreApplicationStartMethodAttribute.cs
- Rijndael.cs
- ResourceSet.cs
- Dispatcher.cs
- EmptyEnumerable.cs
- TextDecorationUnitValidation.cs
- NameSpaceEvent.cs
- ProfileSettingsCollection.cs
- InkCollectionBehavior.cs
- OutOfProcStateClientManager.cs
- _SafeNetHandles.cs
- VisualSerializer.cs
- TextReader.cs
- CompiledScopeCriteria.cs
- WebEncodingValidator.cs
- OrthographicCamera.cs
- DataGridColumnStyleMappingNameEditor.cs
- HttpCacheParams.cs
- AuthenticationServiceManager.cs
- ScriptingAuthenticationServiceSection.cs
- BaseTemplateBuildProvider.cs
- SqlUtil.cs
- ShapingEngine.cs
- RemotingHelper.cs
- ValidatingCollection.cs
- WeakRefEnumerator.cs
- ConfigurationLocationCollection.cs
- FamilyTypefaceCollection.cs
- CharAnimationBase.cs
- PlatformNotSupportedException.cs
- XmlSerializerFactory.cs
- _OverlappedAsyncResult.cs
- OuterProxyWrapper.cs
- DataGridColumn.cs
- StickyNote.cs
- TextElementEditingBehaviorAttribute.cs
- HasCopySemanticsAttribute.cs
- TimeoutValidationAttribute.cs
- XmlNamespaceMapping.cs
- HostedBindingBehavior.cs
- TextElementCollectionHelper.cs
- ProcessModuleCollection.cs
- RouteParametersHelper.cs
- VectorAnimationUsingKeyFrames.cs
- CommonDialog.cs
- EntityType.cs
- Stylesheet.cs
- Parser.cs
- CustomErrorsSection.cs
- ItemChangedEventArgs.cs
- ZoneButton.cs
- EdmConstants.cs
- Compiler.cs
- AlignmentYValidation.cs
- VisualCollection.cs
- TextChangedEventArgs.cs
- DependencyObject.cs
- DataBinder.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- PrintDialogException.cs
- DocumentXmlWriter.cs
- EditorZoneDesigner.cs
- VisualStyleInformation.cs
- SkipQueryOptionExpression.cs
- XmlSchemaComplexContentRestriction.cs
- WebScriptClientGenerator.cs
- AnnotationHighlightLayer.cs
- BindingContext.cs
- HtmlShimManager.cs
- HTMLTextWriter.cs
- IndexedString.cs
- BamlResourceContent.cs
- StatusBarItemAutomationPeer.cs
- SerializerWriterEventHandlers.cs
- ApplicationHost.cs
- DataError.cs
- DataBoundControlAdapter.cs
- StoreContentChangedEventArgs.cs
- PaintValueEventArgs.cs
- ThreadInterruptedException.cs
- XPathDocumentNavigator.cs
- PropertyChangedEventArgs.cs
- COM2PictureConverter.cs
- ExitEventArgs.cs
- CaseInsensitiveComparer.cs
- MatrixTransform.cs
- NameTable.cs
- PageParser.cs
- C14NUtil.cs
- HttpGetProtocolReflector.cs
- As.cs
- XmlSchemaValidationException.cs
- typedescriptorpermissionattribute.cs
- CollectionViewGroupRoot.cs
- DiagnosticTraceRecords.cs
- PositiveTimeSpanValidatorAttribute.cs