Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElement.cs / 1305376 / 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
- ScrollChrome.cs
- TokenBasedSet.cs
- AddInBase.cs
- InfoCardSymmetricCrypto.cs
- SqlFunctionAttribute.cs
- DataPagerFieldCommandEventArgs.cs
- RtfToXamlLexer.cs
- TagMapCollection.cs
- EventLogTraceListener.cs
- LinearKeyFrames.cs
- ReachObjectContext.cs
- EntityTypeEmitter.cs
- SetterBase.cs
- Listbox.cs
- ManagedIStream.cs
- XamlTemplateSerializer.cs
- ResourceKey.cs
- TableParaClient.cs
- MouseGestureConverter.cs
- AxisAngleRotation3D.cs
- XmlSchemaSimpleContent.cs
- SourceElementsCollection.cs
- StrokeCollectionConverter.cs
- JournalEntryStack.cs
- XhtmlCssHandler.cs
- ToolStripContentPanel.cs
- XamlHostingSection.cs
- XmlSchemaAnnotated.cs
- NTAccount.cs
- HashSetEqualityComparer.cs
- BooleanFunctions.cs
- DataTableNewRowEvent.cs
- DataListGeneralPage.cs
- IDReferencePropertyAttribute.cs
- LabelDesigner.cs
- DataGridCheckBoxColumn.cs
- QueryReaderSettings.cs
- DragStartedEventArgs.cs
- XmlSchemaProviderAttribute.cs
- PtsPage.cs
- ContainerParaClient.cs
- EncryptedKeyIdentifierClause.cs
- FlowLayoutSettings.cs
- ProfessionalColorTable.cs
- RawStylusInputCustomData.cs
- CachedPathData.cs
- SHA512CryptoServiceProvider.cs
- ButtonAutomationPeer.cs
- ZoomComboBox.cs
- SHA384CryptoServiceProvider.cs
- ACL.cs
- WindowsSpinner.cs
- PagedControl.cs
- MobileControlDesigner.cs
- WebSysDisplayNameAttribute.cs
- WindowsGraphicsWrapper.cs
- RegexCompiler.cs
- HtmlLink.cs
- CharUnicodeInfo.cs
- UrlMappingsSection.cs
- DataGridCaption.cs
- PropertyHelper.cs
- XhtmlTextWriter.cs
- ErrorHandler.cs
- DataGridViewAccessibleObject.cs
- Memoizer.cs
- XpsLiterals.cs
- EndpointConfigContainer.cs
- MetadataCacheItem.cs
- DocumentationServerProtocol.cs
- BitmapCodecInfoInternal.cs
- LinkedList.cs
- Mapping.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Material.cs
- Visual3D.cs
- EditorBrowsableAttribute.cs
- AttachedPropertyMethodSelector.cs
- OverlappedContext.cs
- BuildProvidersCompiler.cs
- SafeRegistryKey.cs
- TypographyProperties.cs
- FieldBuilder.cs
- DatatypeImplementation.cs
- TypeProvider.cs
- DoubleCollectionValueSerializer.cs
- InstanceDataCollectionCollection.cs
- RoutedPropertyChangedEventArgs.cs
- TrackBar.cs
- XPathParser.cs
- InitializationEventAttribute.cs
- ToolBar.cs
- AuthorizationRuleCollection.cs
- odbcmetadatafactory.cs
- Contracts.cs
- DtdParser.cs
- PenContext.cs
- AuthorizationRule.cs
- RuntimeConfig.cs
- CompilationUtil.cs