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
- TransportSecurityHelpers.cs
- DataTableReaderListener.cs
- HashCryptoHandle.cs
- EntityContainerAssociationSetEnd.cs
- ArgIterator.cs
- DataObjectMethodAttribute.cs
- HttpApplication.cs
- InkCollectionBehavior.cs
- PerformanceCountersBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Executor.cs
- ObjectPersistData.cs
- ClientSession.cs
- InternalControlCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- ComponentCollection.cs
- Bidi.cs
- Command.cs
- SendActivity.cs
- SendMailErrorEventArgs.cs
- ipaddressinformationcollection.cs
- XmlReturnWriter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HttpConfigurationContext.cs
- DataKey.cs
- SafeThemeHandle.cs
- FlowDocumentView.cs
- ExpressionVisitor.cs
- PageRanges.cs
- BeginCreateSecurityTokenRequest.cs
- TemplateParser.cs
- ReachSerializationUtils.cs
- WebPartDesigner.cs
- TextOnlyOutput.cs
- EndpointAddress.cs
- ProcessInputEventArgs.cs
- DefaultShape.cs
- _AuthenticationState.cs
- BoundColumn.cs
- Preprocessor.cs
- FilterableAttribute.cs
- BrowserDefinitionCollection.cs
- WorkflowServiceHostFactory.cs
- XPathSingletonIterator.cs
- SmiMetaDataProperty.cs
- _DigestClient.cs
- ContainerSelectorBehavior.cs
- Scene3D.cs
- Control.cs
- ThreadPool.cs
- BindToObject.cs
- ObjectCloneHelper.cs
- EndpointReference.cs
- ProfilePropertySettings.cs
- FormViewDeletedEventArgs.cs
- pingexception.cs
- TCEAdapterGenerator.cs
- DependentList.cs
- EpmContentDeSerializer.cs
- SetterBaseCollection.cs
- ReceiveReply.cs
- ArgumentException.cs
- MinimizableAttributeTypeConverter.cs
- CallbackDebugElement.cs
- ValueProviderWrapper.cs
- Point3DIndependentAnimationStorage.cs
- CodeLabeledStatement.cs
- VisualTarget.cs
- ConfigXmlSignificantWhitespace.cs
- DataGridBoolColumn.cs
- ByteStack.cs
- PowerStatus.cs
- PnrpPeerResolverBindingElement.cs
- GlyphRunDrawing.cs
- StructuredProperty.cs
- ClientSettingsStore.cs
- InvalidAsynchronousStateException.cs
- SchemaLookupTable.cs
- ResourceReferenceExpressionConverter.cs
- SymbolType.cs
- ScrollBar.cs
- EmbeddedMailObject.cs
- XmlIncludeAttribute.cs
- ProfileProvider.cs
- DefaultPropertyAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MarkupCompilePass1.cs
- XmlSchemaSimpleContentRestriction.cs
- FontStyle.cs
- PropertyValueChangedEvent.cs
- OdbcConnectionString.cs
- EncodingTable.cs
- BindingListCollectionView.cs
- RIPEMD160Managed.cs
- ResourceDescriptionAttribute.cs
- ExecutionEngineException.cs
- CookieParameter.cs
- SecuritySessionSecurityTokenProvider.cs
- ConnectionPointCookie.cs
- LinkButton.cs