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
- SafeSecurityHandles.cs
- UndoEngine.cs
- PerformanceCounterLib.cs
- HttpHeaderCollection.cs
- PiiTraceSource.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DataGridHeaderBorder.cs
- SerializationAttributes.cs
- XmlUrlResolver.cs
- BooleanFacetDescriptionElement.cs
- XmlAttributeCollection.cs
- ChtmlTextWriter.cs
- Behavior.cs
- RegexFCD.cs
- TitleStyle.cs
- Pair.cs
- AutomationIdentifierGuids.cs
- VersionedStream.cs
- WebDisplayNameAttribute.cs
- PointHitTestParameters.cs
- GregorianCalendar.cs
- ZipArchive.cs
- StringCollectionMarkupSerializer.cs
- HtmlSelect.cs
- hresults.cs
- BaseConfigurationRecord.cs
- InstancePersistenceException.cs
- SlipBehavior.cs
- CookieParameter.cs
- TextEditorThreadLocalStore.cs
- PropertyInformation.cs
- IndependentAnimationStorage.cs
- DataGridViewCellCollection.cs
- AssemblyAttributes.cs
- PrincipalPermissionMode.cs
- ConfigXmlCDataSection.cs
- XamlGridLengthSerializer.cs
- ExceptionTrace.cs
- PatternMatchRules.cs
- TemplateBaseAction.cs
- AssertSection.cs
- SortDescription.cs
- ZipIOCentralDirectoryBlock.cs
- ScaleTransform.cs
- IDQuery.cs
- FocusManager.cs
- XhtmlMobileTextWriter.cs
- HostProtectionPermission.cs
- XmlSchemaSearchPattern.cs
- TypeBinaryExpression.cs
- SqlTrackingService.cs
- CompositeScriptReferenceEventArgs.cs
- FileClassifier.cs
- ValueUtilsSmi.cs
- CompositionAdorner.cs
- Activity.cs
- MasterPageCodeDomTreeGenerator.cs
- HMAC.cs
- TemplateNodeContextMenu.cs
- FragmentQueryProcessor.cs
- DataColumnChangeEvent.cs
- CroppedBitmap.cs
- IntSecurity.cs
- ImageBrush.cs
- TableColumn.cs
- StagingAreaInputItem.cs
- Parser.cs
- ColumnMapCopier.cs
- Version.cs
- CheckBoxBaseAdapter.cs
- NumberSubstitution.cs
- ComponentDispatcherThread.cs
- RepeaterItemEventArgs.cs
- PeerChannelListener.cs
- StrongNameMembershipCondition.cs
- PropertyEmitter.cs
- RenderDataDrawingContext.cs
- CultureTable.cs
- DbMetaDataFactory.cs
- MessageQueuePermissionEntry.cs
- VisualBrush.cs
- metadatamappinghashervisitor.cs
- XmlAttributes.cs
- LassoHelper.cs
- ServicesUtilities.cs
- EntityProviderServices.cs
- SchemaImporter.cs
- BinaryKeyIdentifierClause.cs
- NGCSerializer.cs
- DropDownButton.cs
- XmlMapping.cs
- XPathException.cs
- DataGridViewDataConnection.cs
- PolyLineSegment.cs
- TextComposition.cs
- ExtendedProtectionPolicyTypeConverter.cs
- HashMembershipCondition.cs
- TemplateControlBuildProvider.cs
- PagesSection.cs
- SourceChangedEventArgs.cs