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
- GenericUriParser.cs
- PackageProperties.cs
- AlternationConverter.cs
- FlagsAttribute.cs
- PanelDesigner.cs
- Int32KeyFrameCollection.cs
- BaseDataListPage.cs
- ValidatorCompatibilityHelper.cs
- _AcceptOverlappedAsyncResult.cs
- Vector.cs
- PropertyPushdownHelper.cs
- HwndSourceKeyboardInputSite.cs
- StackBuilderSink.cs
- CleanUpVirtualizedItemEventArgs.cs
- SchemaCollectionPreprocessor.cs
- PageParser.cs
- CodeNamespace.cs
- QilTargetType.cs
- BitmapFrameDecode.cs
- ReadOnlyHierarchicalDataSource.cs
- DtcInterfaces.cs
- SystemResources.cs
- AdapterUtil.cs
- FormatterConverter.cs
- DebugInfoExpression.cs
- fixedPageContentExtractor.cs
- MissingFieldException.cs
- Repeater.cs
- CodeDesigner.cs
- UIAgentRequest.cs
- MessageSecurityOverMsmqElement.cs
- CustomSignedXml.cs
- HttpContext.cs
- ManagedFilter.cs
- isolationinterop.cs
- Stack.cs
- CreateUserWizardStep.cs
- MaskPropertyEditor.cs
- Exception.cs
- XhtmlCssHandler.cs
- String.cs
- DiscoveryVersionConverter.cs
- SourceLocation.cs
- CustomAttribute.cs
- TypeUtil.cs
- DictionaryEntry.cs
- _ScatterGatherBuffers.cs
- XmlEnumAttribute.cs
- ProfileService.cs
- CustomDictionarySources.cs
- StrokeDescriptor.cs
- MetabaseReader.cs
- ColumnCollectionEditor.cs
- Hashtable.cs
- AggregateNode.cs
- LeftCellWrapper.cs
- BitSet.cs
- DataGridTable.cs
- CommentAction.cs
- FileUtil.cs
- Rect3D.cs
- HttpWebRequest.cs
- AuthenticatedStream.cs
- DBConcurrencyException.cs
- FullTrustAssemblyCollection.cs
- SessionState.cs
- WaveHeader.cs
- BasePattern.cs
- SafeProcessHandle.cs
- AttachedAnnotationChangedEventArgs.cs
- WebPartConnectionsEventArgs.cs
- MeshGeometry3D.cs
- WebServiceReceiveDesigner.cs
- _LocalDataStore.cs
- SystemEvents.cs
- BitmapFrame.cs
- ImageClickEventArgs.cs
- LinqDataSourceEditData.cs
- XsltInput.cs
- Partitioner.cs
- DelimitedListTraceListener.cs
- SystemParameters.cs
- MissingSatelliteAssemblyException.cs
- TextSelectionHighlightLayer.cs
- DynamicValueConverter.cs
- NetworkCredential.cs
- WebConfigurationManager.cs
- FlowSwitchDesigner.xaml.cs
- DbConnectionPool.cs
- ListViewCancelEventArgs.cs
- DiffuseMaterial.cs
- ParameterToken.cs
- GeneralTransform3DTo2D.cs
- EmptyQuery.cs
- ProviderConnectionPointCollection.cs
- OptimizerPatterns.cs
- ListViewItemCollectionEditor.cs
- MetafileHeaderWmf.cs
- IERequestCache.cs
- CodeAccessPermission.cs