Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- _ListenerResponseStream.cs
- OdbcEnvironmentHandle.cs
- IApplicationTrustManager.cs
- MergeExecutor.cs
- DataGridRelationshipRow.cs
- SimpleBitVector32.cs
- ReferenceConverter.cs
- InternalCache.cs
- LoginName.cs
- Viewport2DVisual3D.cs
- PageAdapter.cs
- OperatingSystemVersionCheck.cs
- RuntimeIdentifierPropertyAttribute.cs
- EntitySqlQueryCacheKey.cs
- ToolStripStatusLabel.cs
- FontDifferentiator.cs
- CompilationPass2Task.cs
- Hex.cs
- RegisteredScript.cs
- RequestTimeoutManager.cs
- OracleEncoding.cs
- DataChangedEventManager.cs
- Positioning.cs
- ObjectViewFactory.cs
- SoapExtensionStream.cs
- Calendar.cs
- TreeNodeConverter.cs
- XmlSchemaObjectCollection.cs
- DataGridViewColumnCollection.cs
- MenuStrip.cs
- StatusStrip.cs
- SourceInterpreter.cs
- BuilderPropertyEntry.cs
- WebHttpBindingCollectionElement.cs
- MimeParameterWriter.cs
- XPathException.cs
- Serializer.cs
- CmsInterop.cs
- PerformanceCounter.cs
- TypeGeneratedEventArgs.cs
- DesignerLinkAdapter.cs
- WmfPlaceableFileHeader.cs
- SiblingIterators.cs
- XmlSerializableReader.cs
- TextDecoration.cs
- ViewBox.cs
- XmlFormatExtensionPointAttribute.cs
- DispatcherExceptionEventArgs.cs
- AbsoluteQuery.cs
- CaseStatementProjectedSlot.cs
- AssociationSetMetadata.cs
- FontDialog.cs
- InvokePattern.cs
- HtmlGenericControl.cs
- UIElementPropertyUndoUnit.cs
- ClassGenerator.cs
- DataGridViewLinkCell.cs
- QilVisitor.cs
- cookiecollection.cs
- StickyNoteAnnotations.cs
- WindowsNonControl.cs
- RelatedEnd.cs
- TreeIterator.cs
- FlowDocumentView.cs
- DoubleCollection.cs
- DocumentSchemaValidator.cs
- MeshGeometry3D.cs
- DependencyPropertyValueSerializer.cs
- ServiceContractListItemList.cs
- DataGridSortCommandEventArgs.cs
- JsonSerializer.cs
- DispatcherFrame.cs
- LogAppendAsyncResult.cs
- Misc.cs
- DateTimeParse.cs
- TableCell.cs
- IdentityReference.cs
- XNodeValidator.cs
- DataGridViewRowCollection.cs
- DataList.cs
- Configuration.cs
- ConfigurationSectionGroupCollection.cs
- Int16Storage.cs
- RadioButtonList.cs
- EdmItemCollection.OcAssemblyCache.cs
- ModelPerspective.cs
- BaseComponentEditor.cs
- CollectionViewGroupInternal.cs
- HiddenFieldPageStatePersister.cs
- DoubleSumAggregationOperator.cs
- LocalizationComments.cs
- MimeMapping.cs
- RewritingSimplifier.cs
- HtmlTernaryTree.cs
- AggregationMinMaxHelpers.cs
- SingleKeyFrameCollection.cs
- XmlSchemaCollection.cs
- HostSecurityManager.cs
- TextDecoration.cs
- userdatakeys.cs