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
- IsolatedStorageFileStream.cs
- IApplicationTrustManager.cs
- ExtensionSimplifierMarkupObject.cs
- RectangleConverter.cs
- InputMethod.cs
- PersonalizationProvider.cs
- UIntPtr.cs
- GlyphsSerializer.cs
- SplitContainer.cs
- CorrelationResolver.cs
- BinaryReader.cs
- DataFormats.cs
- AllowedAudienceUriElementCollection.cs
- FederatedMessageSecurityOverHttpElement.cs
- SerializerWriterEventHandlers.cs
- HyperlinkAutomationPeer.cs
- ComponentResourceKeyConverter.cs
- CodeDefaultValueExpression.cs
- FramingChannels.cs
- ScriptReferenceEventArgs.cs
- PagerStyle.cs
- DXD.cs
- BuildResult.cs
- ReadOnlyNameValueCollection.cs
- ClientTargetSection.cs
- CodeCatchClauseCollection.cs
- GZipDecoder.cs
- QuaternionRotation3D.cs
- CodeTypeDeclarationCollection.cs
- InlineCollection.cs
- TypeUnloadedException.cs
- MsmqTransportSecurity.cs
- isolationinterop.cs
- CompilerCollection.cs
- SchemaRegistration.cs
- TransactionBridgeSection.cs
- MasterPageCodeDomTreeGenerator.cs
- ActivityTypeResolver.xaml.cs
- CompModSwitches.cs
- IndexingContentUnit.cs
- CompModSwitches.cs
- CreateUserWizard.cs
- OAVariantLib.cs
- StatusStrip.cs
- TransformerConfigurationWizardBase.cs
- TextMessageEncodingBindingElement.cs
- HttpCachePolicy.cs
- GPPOINT.cs
- GPPOINTF.cs
- Dictionary.cs
- QueryOptionExpression.cs
- SnapLine.cs
- InvocationExpression.cs
- NumericUpDownAccelerationCollection.cs
- OverlappedAsyncResult.cs
- CommandArguments.cs
- XmlHelper.cs
- SQLBoolean.cs
- SoapFault.cs
- EntryIndex.cs
- JsonReaderWriterFactory.cs
- ModelPropertyImpl.cs
- OracleDataReader.cs
- LookupNode.cs
- XPathNavigatorReader.cs
- ViewStateModeByIdAttribute.cs
- TimerEventSubscription.cs
- RtType.cs
- SqlResolver.cs
- WorkerRequest.cs
- RegexParser.cs
- ControlAdapter.cs
- DataGridViewRowsRemovedEventArgs.cs
- MouseButtonEventArgs.cs
- SizeChangedInfo.cs
- System.Data_BID.cs
- TypeUsageBuilder.cs
- SystemUdpStatistics.cs
- CustomAssemblyResolver.cs
- COAUTHINFO.cs
- ExpressionBinding.cs
- WsatRegistrationHeader.cs
- XmlQualifiedNameTest.cs
- PeerTransportBindingElement.cs
- StyleTypedPropertyAttribute.cs
- HttpConfigurationSystem.cs
- __ComObject.cs
- XmlSchemaComplexContentExtension.cs
- SourceLineInfo.cs
- ITreeGenerator.cs
- BrushConverter.cs
- Variant.cs
- WebBrowserProgressChangedEventHandler.cs
- AppDomain.cs
- SemanticKeyElement.cs
- TextEditorMouse.cs
- TextPointerBase.cs
- NativeRecognizer.cs
- TraceContextEventArgs.cs
- ApplicationId.cs