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
- FactoryRecord.cs
- PresentationSource.cs
- XmlSchemaAnyAttribute.cs
- WebConfigurationFileMap.cs
- _NegoState.cs
- QuarticEase.cs
- LambdaCompiler.Unary.cs
- UIElementPropertyUndoUnit.cs
- ExtensionSimplifierMarkupObject.cs
- XmlTextReaderImpl.cs
- SessionEndedEventArgs.cs
- RealProxy.cs
- CodePageUtils.cs
- MetadataCacheItem.cs
- Baml6ConstructorInfo.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PseudoWebRequest.cs
- MemberExpressionHelper.cs
- EmptyControlCollection.cs
- WebDisplayNameAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HtmlTernaryTree.cs
- WrappedReader.cs
- XmlCDATASection.cs
- PageCatalogPart.cs
- GridViewAutoFormat.cs
- FileLoadException.cs
- KeyGestureConverter.cs
- MaterialGroup.cs
- WebPartDisplayModeEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- FolderBrowserDialog.cs
- SecurityElement.cs
- ToolStripAdornerWindowService.cs
- RectangleGeometry.cs
- TdsParserStaticMethods.cs
- SvcMapFileLoader.cs
- FileDialog.cs
- TypeLoader.cs
- DeviceContexts.cs
- RuleInfoComparer.cs
- ElementHostPropertyMap.cs
- Utils.cs
- Attachment.cs
- SqlServices.cs
- Polyline.cs
- AlphabeticalEnumConverter.cs
- Geometry3D.cs
- MutexSecurity.cs
- SerializationEventsCache.cs
- GridItemCollection.cs
- OdbcStatementHandle.cs
- GraphicsPath.cs
- CachedFontFace.cs
- AtomParser.cs
- AuthenticatingEventArgs.cs
- DataGridViewImageColumn.cs
- ReadOnlyDataSource.cs
- Effect.cs
- SmtpNegotiateAuthenticationModule.cs
- filewebresponse.cs
- LiteralControl.cs
- RegistryDataKey.cs
- RelatedView.cs
- WebPartPersonalization.cs
- Privilege.cs
- Attribute.cs
- RootProfilePropertySettingsCollection.cs
- ProxyWebPart.cs
- GridViewSortEventArgs.cs
- DurableRuntimeValidator.cs
- ModelTreeEnumerator.cs
- WebBrowserHelper.cs
- sqlmetadatafactory.cs
- XomlCompilerError.cs
- SqlDataSourceConfigureSortForm.cs
- ElementNotEnabledException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SmtpFailedRecipientsException.cs
- TextAdaptor.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebEvents.cs
- ComEventsInfo.cs
- OdbcConnection.cs
- HostElement.cs
- CallTemplateAction.cs
- Visual3D.cs
- DiscoveryReference.cs
- DefaultValueMapping.cs
- ISCIIEncoding.cs
- ButtonField.cs
- RuleRefElement.cs
- SpellerInterop.cs
- CompensatableTransactionScopeActivityDesigner.cs
- SystemKeyConverter.cs
- login.cs
- DatatypeImplementation.cs
- SqlTrackingQuery.cs
- _HeaderInfo.cs