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
- BitmapPalettes.cs
- shaperfactory.cs
- DataObjectSettingDataEventArgs.cs
- HelpInfo.cs
- PeerObject.cs
- StringFreezingAttribute.cs
- TextProperties.cs
- Matrix3D.cs
- TreeWalkHelper.cs
- UserPersonalizationStateInfo.cs
- SafeBitVector32.cs
- ListBoxItemWrapperAutomationPeer.cs
- IndexedString.cs
- CommonDialog.cs
- SQLConvert.cs
- DesignerUtils.cs
- Win32Native.cs
- UICuesEvent.cs
- BaseCodeDomTreeGenerator.cs
- WasAdminWrapper.cs
- Accessors.cs
- WsiProfilesElementCollection.cs
- CursorConverter.cs
- UnmanagedBitmapWrapper.cs
- UnmanagedMarshal.cs
- SettingsAttributeDictionary.cs
- VisualTreeHelper.cs
- HttpTransportManager.cs
- XhtmlConformanceSection.cs
- PipeException.cs
- TemplateContent.cs
- CustomCredentialPolicy.cs
- JavaScriptObjectDeserializer.cs
- IdleTimeoutMonitor.cs
- Line.cs
- TypedRowGenerator.cs
- Material.cs
- ISessionStateStore.cs
- WindowsFormsEditorServiceHelper.cs
- TemplateXamlParser.cs
- CompatibleComparer.cs
- SqlBulkCopyColumnMappingCollection.cs
- UserPreferenceChangingEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- RegexEditorDialog.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MemberAssignment.cs
- TemplatePagerField.cs
- UniqueConstraint.cs
- GeneralTransformCollection.cs
- ValueChangedEventManager.cs
- PromptBuilder.cs
- RemotingSurrogateSelector.cs
- StringToken.cs
- ButtonColumn.cs
- TemplateManager.cs
- DeleteIndexBinder.cs
- BStrWrapper.cs
- RangeContentEnumerator.cs
- SemaphoreFullException.cs
- PermissionToken.cs
- Deserializer.cs
- TextTreeUndo.cs
- LocalizationComments.cs
- DesignerActionListCollection.cs
- FileLoadException.cs
- UnsafeNativeMethods.cs
- PositiveTimeSpanValidator.cs
- TableStyle.cs
- TransactionOptions.cs
- RTLAwareMessageBox.cs
- VerificationException.cs
- PeerCredentialElement.cs
- SharedUtils.cs
- SchemaMerger.cs
- ToolStripPanel.cs
- StylusLogic.cs
- GacUtil.cs
- RedirectionProxy.cs
- RSAOAEPKeyExchangeFormatter.cs
- WindowsTab.cs
- FamilyTypeface.cs
- ValidatingReaderNodeData.cs
- XmlSchemaAppInfo.cs
- QuaternionAnimation.cs
- WebPartManager.cs
- MDIControlStrip.cs
- EmbeddedMailObject.cs
- DocumentSequence.cs
- UserPreferenceChangedEventArgs.cs
- TraceInternal.cs
- ListControlStringCollectionEditor.cs
- UrlAuthorizationModule.cs
- HttpResponse.cs
- XdrBuilder.cs
- SessionStateSection.cs
- MiniLockedBorderGlyph.cs
- RowUpdatingEventArgs.cs
- CrossAppDomainChannel.cs
- DiffuseMaterial.cs