Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElementCollection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SequentialUshortCollection.cs
- input.cs
- UniqueConstraint.cs
- WeakHashtable.cs
- GraphicsContainer.cs
- TreeNodeCollectionEditorDialog.cs
- DesignerCommandSet.cs
- ErrorLog.cs
- SafeUserTokenHandle.cs
- HttpValueCollection.cs
- MaskedTextBoxDesigner.cs
- GenericParameterDataContract.cs
- SetStoryboardSpeedRatio.cs
- OperationInfoBase.cs
- HostedTransportConfigurationManager.cs
- FileDocument.cs
- DataPagerFieldCommandEventArgs.cs
- ColumnBinding.cs
- ObjectListField.cs
- SelectionListDesigner.cs
- SinglePageViewer.cs
- Accessors.cs
- CodeObjectCreateExpression.cs
- GlyphRunDrawing.cs
- SplitContainer.cs
- XmlSchemaComplexContent.cs
- StringBuilder.cs
- FileStream.cs
- OleAutBinder.cs
- Site.cs
- FastEncoder.cs
- ConsoleTraceListener.cs
- MainMenu.cs
- BooleanConverter.cs
- TraceContextRecord.cs
- FixedFindEngine.cs
- IgnoreSectionHandler.cs
- SingleAnimationBase.cs
- SplineKeyFrames.cs
- StatusBarPanel.cs
- FrameworkContentElement.cs
- GlobalProxySelection.cs
- BinaryMethodMessage.cs
- ModuleElement.cs
- DataContractSet.cs
- UrlMapping.cs
- MarkerProperties.cs
- EnumUnknown.cs
- BuildProvider.cs
- HotSpot.cs
- XmlComment.cs
- EntityClassGenerator.cs
- XmlImplementation.cs
- GeneratedView.cs
- PeerContact.cs
- StructuralType.cs
- DrawingDrawingContext.cs
- AvtEvent.cs
- ApplicationException.cs
- _SslState.cs
- CharAnimationBase.cs
- ColorConverter.cs
- XamlSerializerUtil.cs
- MetadataWorkspace.cs
- NamedServiceModelExtensionCollectionElement.cs
- MenuItem.cs
- SqlSelectStatement.cs
- WinFormsComponentEditor.cs
- SafeProcessHandle.cs
- TextAutomationPeer.cs
- WindowsComboBox.cs
- WorkflowExecutor.cs
- TimelineGroup.cs
- ResetableIterator.cs
- BamlResourceDeserializer.cs
- ExecutionEngineException.cs
- DesignSurfaceEvent.cs
- PropertyMetadata.cs
- Bezier.cs
- GridItemProviderWrapper.cs
- ListBoxItem.cs
- ColumnMapProcessor.cs
- CodeIterationStatement.cs
- x509utils.cs
- TreeNodeCollection.cs
- HandleExceptionArgs.cs
- UshortList2.cs
- EncodingNLS.cs
- ConfigurationManagerHelperFactory.cs
- GridItemProviderWrapper.cs
- FederatedMessageSecurityOverHttpElement.cs
- KnownTypesProvider.cs
- ServicePointManagerElement.cs
- PingOptions.cs
- RelatedCurrencyManager.cs
- WebPartTransformer.cs
- EventProperty.cs
- DataGridViewSortCompareEventArgs.cs
- NavigationProperty.cs
- DoubleAnimationBase.cs