Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FontFamilyIdentifier.cs
- PictureBox.cs
- ObjectQuery_EntitySqlExtensions.cs
- ArcSegment.cs
- SqlFileStream.cs
- FullTextBreakpoint.cs
- SQLMembershipProvider.cs
- AttributeAction.cs
- LockedAssemblyCache.cs
- MessagePropertyDescription.cs
- ConfigXmlElement.cs
- HealthMonitoringSection.cs
- ComNativeDescriptor.cs
- DesignTimeParseData.cs
- PathParser.cs
- ProtocolInformationWriter.cs
- CodeNamespace.cs
- CurrentTimeZone.cs
- SyntaxCheck.cs
- _StreamFramer.cs
- XmlSchemaInclude.cs
- TemplatedControlDesigner.cs
- recordstatefactory.cs
- ServerIdentity.cs
- XMLSyntaxException.cs
- SchemaEntity.cs
- ManagementOptions.cs
- PropertyRef.cs
- Root.cs
- NavigationWindowAutomationPeer.cs
- ExternalException.cs
- SmiMetaData.cs
- base64Transforms.cs
- PieceDirectory.cs
- DomainUpDown.cs
- xmlsaver.cs
- HttpRequestCacheValidator.cs
- XPathDescendantIterator.cs
- EncryptedPackage.cs
- DataViewListener.cs
- DbProviderConfigurationHandler.cs
- XPathNode.cs
- Timeline.cs
- UpdatePanel.cs
- ViewSimplifier.cs
- ChtmlTextWriter.cs
- WhileDesigner.cs
- ECDsa.cs
- XPathConvert.cs
- DocumentReferenceCollection.cs
- TextCompositionEventArgs.cs
- ScriptingProfileServiceSection.cs
- Filter.cs
- OracleParameter.cs
- Publisher.cs
- ElementHost.cs
- ExtensionSurface.cs
- UnauthorizedAccessException.cs
- LoginName.cs
- TransformerInfo.cs
- FlowSwitchDesigner.xaml.cs
- URLString.cs
- XDeferredAxisSource.cs
- ToolStripStatusLabel.cs
- AdapterUtil.cs
- DataControlImageButton.cs
- SHA384.cs
- DateTimeConverter.cs
- SqlClientFactory.cs
- DBParameter.cs
- TextOutput.cs
- SettingsBase.cs
- SqlResolver.cs
- TemplateParser.cs
- Debug.cs
- ClaimSet.cs
- CultureTableRecord.cs
- CompilerErrorCollection.cs
- XmlValidatingReader.cs
- ModelToObjectValueConverter.cs
- BStrWrapper.cs
- RuleSetBrowserDialog.cs
- QilTernary.cs
- AvTraceFormat.cs
- NativeRecognizer.cs
- StateMachineWorkflowInstance.cs
- FullTextState.cs
- LongMinMaxAggregationOperator.cs
- Image.cs
- Vector3DCollection.cs
- PageContentCollection.cs
- BindingList.cs
- IPGlobalProperties.cs
- SeekableReadStream.cs
- Listbox.cs
- CreateSequenceResponse.cs
- XPathDocumentNavigator.cs
- RangeValuePattern.cs
- RuntimeWrappedException.cs
- SqlTransaction.cs