Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- NullableFloatSumAggregationOperator.cs
- TypeInfo.cs
- TextTreeTextElementNode.cs
- SecureStringHasher.cs
- ClientBuildManagerCallback.cs
- PersonalizationStateInfoCollection.cs
- XmlDictionaryWriter.cs
- TcpClientChannel.cs
- XmlTypeMapping.cs
- AuthenticatingEventArgs.cs
- WebPartMovingEventArgs.cs
- XmlUtf8RawTextWriter.cs
- RemoteWebConfigurationHostServer.cs
- KeyGestureConverter.cs
- hwndwrapper.cs
- Geometry3D.cs
- MLangCodePageEncoding.cs
- StateMachineExecutionState.cs
- Mouse.cs
- WebPartCatalogCloseVerb.cs
- AuthorizationRuleCollection.cs
- TimerElapsedEvenArgs.cs
- InnerItemCollectionView.cs
- addressfiltermode.cs
- ExtenderControl.cs
- RectAnimation.cs
- GifBitmapEncoder.cs
- NetworkInformationException.cs
- ApplicationActivator.cs
- CodeGenerator.cs
- RootProfilePropertySettingsCollection.cs
- ObjectMemberMapping.cs
- UntypedNullExpression.cs
- ConfigXmlAttribute.cs
- InstalledFontCollection.cs
- RelatedImageListAttribute.cs
- BlurEffect.cs
- Attribute.cs
- DrawingGroupDrawingContext.cs
- Part.cs
- UnSafeCharBuffer.cs
- XamlClipboardData.cs
- XmlObjectSerializerReadContextComplex.cs
- Group.cs
- EmbeddedMailObjectsCollection.cs
- DesignerContextDescriptor.cs
- SatelliteContractVersionAttribute.cs
- ActivationServices.cs
- TypeConverterHelper.cs
- PassportAuthenticationModule.cs
- ConnectivityStatus.cs
- MenuAutomationPeer.cs
- LogLogRecordHeader.cs
- ResXFileRef.cs
- DataGridCellInfo.cs
- _Events.cs
- Image.cs
- JournalNavigationScope.cs
- WeakKeyDictionary.cs
- IISMapPath.cs
- DbXmlEnabledProviderManifest.cs
- OrderingQueryOperator.cs
- ByteArrayHelperWithString.cs
- DataGridBeginningEditEventArgs.cs
- AuthenticationServiceManager.cs
- TypedTableBase.cs
- DependentTransaction.cs
- FormView.cs
- Win32KeyboardDevice.cs
- SplitContainer.cs
- PriorityChain.cs
- WindowsListViewItem.cs
- TextWriter.cs
- GetWinFXPath.cs
- AccessText.cs
- KeyedCollection.cs
- DecimalAnimationBase.cs
- Table.cs
- FontFamilyConverter.cs
- X509Certificate2.cs
- TreeNodeBindingDepthConverter.cs
- ObjectCloneHelper.cs
- Mappings.cs
- ICspAsymmetricAlgorithm.cs
- CopyAction.cs
- AttributeProviderAttribute.cs
- DefaultWorkflowTransactionService.cs
- MediaSystem.cs
- ConnectionPoint.cs
- TableItemPattern.cs
- BaseParser.cs
- DataGridSortCommandEventArgs.cs
- streamingZipPartStream.cs
- ProcessModelInfo.cs
- QilValidationVisitor.cs
- _AcceptOverlappedAsyncResult.cs
- ExpressionVisitor.cs
- XmlSchemaIdentityConstraint.cs
- ArgumentValidation.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs