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 / AuthenticationModuleElement.cs / 1 / AuthenticationModuleElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class AuthenticationModuleElement : ConfigurationElement { public AuthenticationModuleElement() { this.properties.Add(this.type); } public AuthenticationModuleElement(string typeName) : this() { if (typeName != (string)this.type.DefaultValue) { this.Type = typeName; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty(ConfigurationStrings.Type, IsRequired=true, IsKey = true)] public string Type { get { return (string)this[this.type]; } set { this[this.type] = value; } } internal string Key { get { return this.Type; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty type = new ConfigurationProperty(ConfigurationStrings.Type, typeof(string), null, ConfigurationPropertyOptions.IsKey); } } // 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.Reflection; using System.Security.Permissions; public sealed class AuthenticationModuleElement : ConfigurationElement { public AuthenticationModuleElement() { this.properties.Add(this.type); } public AuthenticationModuleElement(string typeName) : this() { if (typeName != (string)this.type.DefaultValue) { this.Type = typeName; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty(ConfigurationStrings.Type, IsRequired=true, IsKey = true)] public string Type { get { return (string)this[this.type]; } set { this[this.type] = value; } } internal string Key { get { return this.Type; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty type = new ConfigurationProperty(ConfigurationStrings.Type, typeof(string), null, ConfigurationPropertyOptions.IsKey); } } // 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
- Char.cs
- NodeLabelEditEvent.cs
- XmlUrlResolver.cs
- SystemWebSectionGroup.cs
- CanExecuteRoutedEventArgs.cs
- typedescriptorpermission.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- ObjectFullSpanRewriter.cs
- SyncMethodInvoker.cs
- SystemException.cs
- EventProviderTraceListener.cs
- WebHeaderCollection.cs
- ProbeRequestResponseAsyncResult.cs
- WindowsFormsHostAutomationPeer.cs
- DocumentReferenceCollection.cs
- AdornerLayer.cs
- ContentFileHelper.cs
- FontNamesConverter.cs
- EndOfStreamException.cs
- DataListGeneralPage.cs
- PowerModeChangedEventArgs.cs
- MLangCodePageEncoding.cs
- CaseStatement.cs
- Timer.cs
- QueryReaderSettings.cs
- IERequestCache.cs
- DataRowChangeEvent.cs
- EdmItemCollection.OcAssemblyCache.cs
- ColorTransform.cs
- EventLogStatus.cs
- MultiPageTextView.cs
- SelectionListDesigner.cs
- AppDomainProtocolHandler.cs
- PasswordTextContainer.cs
- BinarySerializer.cs
- WebPartTransformer.cs
- ApplicationProxyInternal.cs
- ExpressionBuilder.cs
- embossbitmapeffect.cs
- VerificationAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- RouteItem.cs
- EventSource.cs
- HtmlFormWrapper.cs
- RowsCopiedEventArgs.cs
- HybridDictionary.cs
- DragEvent.cs
- XmlSerializerObjectSerializer.cs
- _WinHttpWebProxyDataBuilder.cs
- GridViewCellAutomationPeer.cs
- StorageEntitySetMapping.cs
- LinkArea.cs
- Base64Stream.cs
- SqlServices.cs
- VirtualDirectoryMapping.cs
- SqlServices.cs
- WebPartTracker.cs
- Events.cs
- ResXResourceWriter.cs
- HwndHostAutomationPeer.cs
- WebPartConnection.cs
- FileRegion.cs
- FormParameter.cs
- X509Certificate.cs
- DataStorage.cs
- DbgUtil.cs
- TargetPerspective.cs
- NavigationHelper.cs
- WorkflowHostingEndpoint.cs
- Paragraph.cs
- Predicate.cs
- SystemFonts.cs
- BamlResourceSerializer.cs
- PageRequestManager.cs
- LinearQuaternionKeyFrame.cs
- CreatingCookieEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- EntityParameterCollection.cs
- LinearGradientBrush.cs
- WebPartMovingEventArgs.cs
- ControlAdapter.cs
- WebPartDescriptionCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ExpressionReplacer.cs
- SrgsRulesCollection.cs
- FreeFormDragDropManager.cs
- MasterPageParser.cs
- WebPartDisplayMode.cs
- ExceptionNotification.cs
- _DigestClient.cs
- PersonalizationProviderCollection.cs
- XpsSerializerWriter.cs
- WorkflowMarkupSerializationException.cs
- ProcessModule.cs
- AdapterSwitches.cs
- LineInfo.cs
- PeerTransportSecuritySettings.cs
- DynamicPropertyReader.cs
- PermissionSetEnumerator.cs
- Vector3DCollectionValueSerializer.cs