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
- Site.cs
- ControlBuilder.cs
- FilterException.cs
- ScalarOps.cs
- DataViewManagerListItemTypeDescriptor.cs
- SqlConnectionPoolProviderInfo.cs
- SingleSelectRootGridEntry.cs
- RestHandler.cs
- EntityKeyElement.cs
- AngleUtil.cs
- MtomMessageEncoder.cs
- EnumerableValidator.cs
- MenuBindingsEditorForm.cs
- PenLineJoinValidation.cs
- PagePropertiesChangingEventArgs.cs
- ApplicationId.cs
- TableProviderWrapper.cs
- RepeatBehavior.cs
- SelectorItemAutomationPeer.cs
- ListViewCommandEventArgs.cs
- RootCodeDomSerializer.cs
- QuerySettings.cs
- UiaCoreTypesApi.cs
- XmlSchemaGroup.cs
- GZipDecoder.cs
- SqlIdentifier.cs
- MergablePropertyAttribute.cs
- BindingSourceDesigner.cs
- WebPartTracker.cs
- BindUriHelper.cs
- EntityDataSourceMemberPath.cs
- SmtpSection.cs
- PrinterSettings.cs
- ColorDialog.cs
- DataStreams.cs
- MD5Cng.cs
- DetailsViewCommandEventArgs.cs
- DigitalSignature.cs
- PageBreakRecord.cs
- XpsViewerException.cs
- FormView.cs
- SessionStateContainer.cs
- SafeNativeMethods.cs
- SqlReferenceCollection.cs
- ImageSourceConverter.cs
- WebPartChrome.cs
- SignatureDescription.cs
- DataColumnMappingCollection.cs
- _NegoStream.cs
- ToolStripPanel.cs
- _CacheStreams.cs
- Gdiplus.cs
- AdRotatorDesigner.cs
- TableCellsCollectionEditor.cs
- RequestCacheManager.cs
- HtmlWindowCollection.cs
- WebPartVerbsEventArgs.cs
- XmlSignatureManifest.cs
- PeerCollaboration.cs
- XmlAttributes.cs
- ScrollPatternIdentifiers.cs
- SqlHelper.cs
- QilReplaceVisitor.cs
- SqlGenericUtil.cs
- TaskFactory.cs
- _ListenerResponseStream.cs
- AbstractSvcMapFileLoader.cs
- webclient.cs
- DataBoundControlAdapter.cs
- StorageComplexPropertyMapping.cs
- XmlDeclaration.cs
- SmtpReplyReader.cs
- TraceHandlerErrorFormatter.cs
- GridViewAutoFormat.cs
- EmptyArray.cs
- EditingCoordinator.cs
- CounterCreationDataCollection.cs
- RangeBase.cs
- OdbcConnection.cs
- ContainerTracking.cs
- ConfigXmlText.cs
- DynamicFilterExpression.cs
- DrawTreeNodeEventArgs.cs
- PrePostDescendentsWalker.cs
- UIPermission.cs
- ModelMemberCollection.cs
- TimelineClockCollection.cs
- InputProviderSite.cs
- NativeStructs.cs
- TableItemPattern.cs
- GenericTypeParameterBuilder.cs
- WebPartChrome.cs
- CustomError.cs
- DesignerObject.cs
- PartialCachingControl.cs
- DateTimeFormatInfoScanner.cs
- BitVec.cs
- VariableModifiersHelper.cs
- ObjectSet.cs
- ElementHostAutomationPeer.cs