Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ReflectionServiceProvider.cs
- SoapInteropTypes.cs
- WindowsStatic.cs
- FixedPageStructure.cs
- LocalBuilder.cs
- XmlNamespaceMappingCollection.cs
- TreeNode.cs
- PrefixHandle.cs
- MemoryPressure.cs
- AttributeCollection.cs
- COM2ExtendedUITypeEditor.cs
- CursorInteropHelper.cs
- IxmlLineInfo.cs
- XmlSerializerFormatAttribute.cs
- ResumeStoryboard.cs
- ProcessingInstructionAction.cs
- TemplateNodeContextMenu.cs
- PeerNameResolver.cs
- ProfileWorkflowElement.cs
- BaseValidator.cs
- MulticastOption.cs
- XPathDocumentNavigator.cs
- PasswordPropertyTextAttribute.cs
- ButtonFlatAdapter.cs
- MarginsConverter.cs
- WindowsBrush.cs
- WorkflowRuntimeServicesBehavior.cs
- DesignTimeVisibleAttribute.cs
- Transactions.cs
- CodePageUtils.cs
- FilterableData.cs
- WebPartManagerInternals.cs
- WeakHashtable.cs
- UnknownWrapper.cs
- PassportIdentity.cs
- ObjectStorage.cs
- Run.cs
- SignatureHelper.cs
- ToolStripItemCollection.cs
- ElapsedEventArgs.cs
- AgileSafeNativeMemoryHandle.cs
- ApplicationHost.cs
- XMLDiffLoader.cs
- DocumentCollection.cs
- Context.cs
- MatrixCamera.cs
- ColorDialog.cs
- Int32CollectionValueSerializer.cs
- ColorContextHelper.cs
- XhtmlBasicLinkAdapter.cs
- TaiwanCalendar.cs
- Material.cs
- GlobalItem.cs
- FontStretchConverter.cs
- XmlChildEnumerator.cs
- PresentationSource.cs
- UnsafeNativeMethods.cs
- RangeEnumerable.cs
- ResourceAssociationTypeEnd.cs
- ConnectionStringSettingsCollection.cs
- UrlMappingsSection.cs
- FixedSOMTableRow.cs
- XamlClipboardData.cs
- WebAdminConfigurationHelper.cs
- Quaternion.cs
- CompilerLocalReference.cs
- SemaphoreSecurity.cs
- FormParameter.cs
- XhtmlBasicValidatorAdapter.cs
- ToolTipService.cs
- HttpHandlerAction.cs
- AppModelKnownContentFactory.cs
- CompilerResults.cs
- TextTreeTextNode.cs
- StaticDataManager.cs
- CharEnumerator.cs
- SecurityPermission.cs
- ListMarkerSourceInfo.cs
- SchemaTableOptionalColumn.cs
- WriteableBitmap.cs
- SoapInteropTypes.cs
- ServiceDescription.cs
- DurationConverter.cs
- Rect3DValueSerializer.cs
- DetailsViewPageEventArgs.cs
- FillRuleValidation.cs
- DialogResultConverter.cs
- EntityContainerEmitter.cs
- HyperLinkColumn.cs
- RuntimeConfigurationRecord.cs
- Overlapped.cs
- ActivityExecutorDelegateInfo.cs
- StringConcat.cs
- ModifierKeysValueSerializer.cs
- SoapElementAttribute.cs
- ServicePoint.cs
- CapabilitiesUse.cs
- OdbcConnectionStringbuilder.cs
- BaseCodeDomTreeGenerator.cs
- DbExpressionVisitor.cs