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
- RegexCharClass.cs
- DecoderExceptionFallback.cs
- CommandConverter.cs
- TimeSpanOrInfiniteConverter.cs
- CollectionViewProxy.cs
- WeakReferenceKey.cs
- SpellCheck.cs
- BitArray.cs
- CLRBindingWorker.cs
- ScriptResourceHandler.cs
- HttpModuleActionCollection.cs
- UserControlParser.cs
- KeyValueConfigurationElement.cs
- LeftCellWrapper.cs
- LambdaExpression.cs
- ListBoxItemAutomationPeer.cs
- AmbientValueAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- _NativeSSPI.cs
- SchemaEntity.cs
- Membership.cs
- OleDbTransaction.cs
- TransactionProtocolConverter.cs
- CodeNamespaceImportCollection.cs
- ForwardPositionQuery.cs
- SqlMethodTransformer.cs
- WindowsContainer.cs
- HwndTarget.cs
- CompModSwitches.cs
- NamespaceInfo.cs
- RunInstallerAttribute.cs
- ExtensionQuery.cs
- LineInfo.cs
- MailBnfHelper.cs
- CodeFieldReferenceExpression.cs
- EntityDataSourceConfigureObjectContext.cs
- WebPartChrome.cs
- ComboBoxItem.cs
- DBParameter.cs
- SqlException.cs
- Soap11ServerProtocol.cs
- CatalogZoneBase.cs
- XmlNodeList.cs
- ParserStreamGeometryContext.cs
- InstanceKeyCollisionException.cs
- InstanceDataCollection.cs
- QuaternionRotation3D.cs
- _BaseOverlappedAsyncResult.cs
- GraphicsContainer.cs
- NumericUpDownAcceleration.cs
- PageThemeBuildProvider.cs
- DataPagerFieldCommandEventArgs.cs
- CollectionContainer.cs
- FileNotFoundException.cs
- ViewStateModeByIdAttribute.cs
- ToolStripContentPanel.cs
- FixedSOMTextRun.cs
- UriScheme.cs
- TextDecorationCollection.cs
- FileNotFoundException.cs
- DisplayNameAttribute.cs
- CodeGroup.cs
- WebPartHeaderCloseVerb.cs
- PartialList.cs
- ScrollChangedEventArgs.cs
- ToolStripComboBox.cs
- LayoutSettings.cs
- PaginationProgressEventArgs.cs
- arc.cs
- MultiView.cs
- MenuScrollingVisibilityConverter.cs
- EdmItemCollection.OcAssemblyCache.cs
- MouseGestureValueSerializer.cs
- ChangeInterceptorAttribute.cs
- DynamicControl.cs
- HttpPostLocalhostServerProtocol.cs
- MetadataWorkspace.cs
- XamlStyleSerializer.cs
- FixedPageProcessor.cs
- WebEvents.cs
- ContextProperty.cs
- TypefaceMetricsCache.cs
- ResourceContainerWrapper.cs
- OracleBinary.cs
- RuleRef.cs
- DropTarget.cs
- CryptographicAttribute.cs
- AliasGenerator.cs
- Message.cs
- VerificationException.cs
- PauseStoryboard.cs
- InstanceNotFoundException.cs
- ITextView.cs
- ReliabilityContractAttribute.cs
- ByteStorage.cs
- ImmComposition.cs
- Rotation3DAnimationBase.cs
- JavaScriptSerializer.cs
- ReferentialConstraint.cs
- IncrementalReadDecoders.cs