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
- ItemCheckEvent.cs
- UIElementCollection.cs
- ITextView.cs
- DesignerEditorPartChrome.cs
- PanningMessageFilter.cs
- FrameworkName.cs
- PropertyOverridesTypeEditor.cs
- BufferedMessageWriter.cs
- NetMsmqBindingCollectionElement.cs
- SiteOfOriginPart.cs
- FrameworkElement.cs
- ObjectDataSourceSelectingEventArgs.cs
- RegexStringValidatorAttribute.cs
- FileStream.cs
- DataGridViewRow.cs
- SqlHelper.cs
- SpellerHighlightLayer.cs
- RoleManagerSection.cs
- XmlSiteMapProvider.cs
- AnnotationMap.cs
- ComponentSerializationService.cs
- MenuCommand.cs
- InteropAutomationProvider.cs
- BitmapEffect.cs
- X509RawDataKeyIdentifierClause.cs
- FolderBrowserDialogDesigner.cs
- BulletedList.cs
- Package.cs
- SecurityException.cs
- CodeComment.cs
- LogicalTreeHelper.cs
- SignedInfo.cs
- ProfessionalColors.cs
- CellPartitioner.cs
- BufferedStream.cs
- DataServiceHostWrapper.cs
- ConnectivityStatus.cs
- SchemaManager.cs
- DefaultTraceListener.cs
- CodeNamespaceImport.cs
- XsltQilFactory.cs
- ImageConverter.cs
- DropDownButton.cs
- Scanner.cs
- RoleManagerEventArgs.cs
- Hash.cs
- TriState.cs
- ApplicationId.cs
- ExpressionVisitorHelpers.cs
- OuterGlowBitmapEffect.cs
- GridViewCellAutomationPeer.cs
- HttpModuleCollection.cs
- AccessViolationException.cs
- PolyLineSegment.cs
- WebDisplayNameAttribute.cs
- TcpTransportSecurity.cs
- WindowsScroll.cs
- EventLogPermissionAttribute.cs
- SymbolMethod.cs
- AuthorizationSection.cs
- SqlDataSourceDesigner.cs
- PropertyKey.cs
- BuildProvidersCompiler.cs
- SupportsEventValidationAttribute.cs
- BackgroundWorker.cs
- _SSPIWrapper.cs
- TextInfo.cs
- ConfigurationManagerHelperFactory.cs
- TextAutomationPeer.cs
- NavigationService.cs
- TemplatePropertyEntry.cs
- AdvancedBindingEditor.cs
- TimeStampChecker.cs
- TileModeValidation.cs
- Schema.cs
- ChangeTracker.cs
- COM2PropertyDescriptor.cs
- NotFiniteNumberException.cs
- CommentAction.cs
- NamespaceList.cs
- WSHttpBindingBaseElement.cs
- LocationSectionRecord.cs
- DBAsyncResult.cs
- ModelServiceImpl.cs
- XmlDataCollection.cs
- RadioButton.cs
- XmlParserContext.cs
- EventDescriptorCollection.cs
- WindowsRegion.cs
- SkewTransform.cs
- Oid.cs
- XmlReaderSettings.cs
- HashMembershipCondition.cs
- safePerfProviderHandle.cs
- MethodCallConverter.cs
- ProfileParameter.cs
- Util.cs
- Brush.cs
- FocusWithinProperty.cs
- XmlSchema.cs