Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Base64Encoder.cs
- HandlerElement.cs
- ToolStripRendererSwitcher.cs
- PropertyFilterAttribute.cs
- InfoCardKeyedHashAlgorithm.cs
- RefreshEventArgs.cs
- dataobject.cs
- TraceListeners.cs
- XmlException.cs
- Manipulation.cs
- GAC.cs
- WebPartActionVerb.cs
- Transform.cs
- COM2ColorConverter.cs
- GenericUriParser.cs
- Sql8ExpressionRewriter.cs
- GPPOINT.cs
- TreeNodeCollection.cs
- OciLobLocator.cs
- SynchronizationFilter.cs
- ClientSettingsSection.cs
- DataGridHeaderBorder.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- IsolatedStorage.cs
- Debug.cs
- QilReplaceVisitor.cs
- HttpProcessUtility.cs
- OdbcTransaction.cs
- ContentFileHelper.cs
- DoubleLinkListEnumerator.cs
- RequiredFieldValidator.cs
- SchemaHelper.cs
- ObjectReaderCompiler.cs
- Publisher.cs
- ResourceSetExpression.cs
- PageThemeBuildProvider.cs
- GeneralTransformGroup.cs
- ElasticEase.cs
- TextParagraphCache.cs
- TraceXPathNavigator.cs
- CodeParameterDeclarationExpression.cs
- ResourceType.cs
- EntityModelSchemaGenerator.cs
- ProcessProtocolHandler.cs
- StylusPointDescription.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ValueOfAction.cs
- HttpApplicationFactory.cs
- SystemUdpStatistics.cs
- DataObjectPastingEventArgs.cs
- MouseEventArgs.cs
- ImportCatalogPart.cs
- DocumentReference.cs
- DynamicValidatorEventArgs.cs
- PeerNode.cs
- SoapAttributeOverrides.cs
- RectangleGeometry.cs
- WindowsPen.cs
- DataColumnMapping.cs
- MDIWindowDialog.cs
- ObjectManager.cs
- ExternalException.cs
- XmlSchemaAnnotated.cs
- ScopelessEnumAttribute.cs
- MenuBase.cs
- DragStartedEventArgs.cs
- Dynamic.cs
- PerfProviderCollection.cs
- IPipelineRuntime.cs
- XmlElementAttribute.cs
- TableDetailsRow.cs
- DataBindingCollectionConverter.cs
- TemplateControlBuildProvider.cs
- MatchingStyle.cs
- DataGridRelationshipRow.cs
- NullableFloatMinMaxAggregationOperator.cs
- UnionExpr.cs
- RegistrationServices.cs
- LinkButton.cs
- DataStreams.cs
- TreeNodeBinding.cs
- Quaternion.cs
- CircleHotSpot.cs
- WebPartDisplayModeCollection.cs
- RelationshipManager.cs
- WebPartEditVerb.cs
- CachedTypeface.cs
- KnownBoxes.cs
- Expander.cs
- NameScope.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Rectangle.cs
- ConfigurationManager.cs
- MsmqHostedTransportConfiguration.cs
- EntityParameter.cs
- COAUTHIDENTITY.cs
- HyperLinkStyle.cs
- InputScopeAttribute.cs
- AddInAttribute.cs
- OptimizedTemplateContent.cs