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
- CustomValidator.cs
- PropertyItemInternal.cs
- WebServiceClientProxyGenerator.cs
- Update.cs
- ListParagraph.cs
- ExpressionWriter.cs
- WebContext.cs
- WebPartMinimizeVerb.cs
- WindowsImpersonationContext.cs
- CredentialCache.cs
- OleDbParameter.cs
- ExpressionPrefixAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- MessageSmuggler.cs
- OracleTimeSpan.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlSchema.cs
- BaseAutoFormat.cs
- NetStream.cs
- DecoderReplacementFallback.cs
- SignatureDescription.cs
- SQLDateTimeStorage.cs
- OdbcCommand.cs
- SizeConverter.cs
- RoleGroupCollection.cs
- ManagedWndProcTracker.cs
- UInt32.cs
- DynamicActionMessageFilter.cs
- WindowsMenu.cs
- RecognizeCompletedEventArgs.cs
- CodeCatchClause.cs
- WinInet.cs
- XmlDocument.cs
- CompressStream.cs
- ProviderCollection.cs
- DeferredElementTreeState.cs
- CommonProperties.cs
- RegexMatchCollection.cs
- FactoryGenerator.cs
- ObjectSet.cs
- StorageComplexPropertyMapping.cs
- LinearGradientBrush.cs
- AppDomain.cs
- TcpAppDomainProtocolHandler.cs
- SoapException.cs
- XmlCustomFormatter.cs
- StringAnimationUsingKeyFrames.cs
- ClientUtils.cs
- TreeViewEvent.cs
- WebDisplayNameAttribute.cs
- DesignerContextDescriptor.cs
- AssemblyBuilder.cs
- StorageAssociationSetMapping.cs
- LabelExpression.cs
- ArgumentsParser.cs
- HtmlLink.cs
- webproxy.cs
- SecurityTokenResolver.cs
- RTLAwareMessageBox.cs
- TimeStampChecker.cs
- OuterGlowBitmapEffect.cs
- FormatException.cs
- SolidBrush.cs
- IBuiltInEvidence.cs
- SymbolType.cs
- TableCellCollection.cs
- ViewManager.cs
- XmlLinkedNode.cs
- DefaultBinder.cs
- ToolStripProgressBar.cs
- ListParaClient.cs
- ConnectionPoint.cs
- ReflectEventDescriptor.cs
- DirtyTextRange.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SetIterators.cs
- FirstMatchCodeGroup.cs
- Point3DCollectionValueSerializer.cs
- NotificationContext.cs
- SecurityMode.cs
- _TimerThread.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebConvert.cs
- DataList.cs
- PersonalizationStateInfo.cs
- TranslateTransform.cs
- HandleCollector.cs
- ExceptionWrapper.cs
- WebBrowser.cs
- PropertyPathConverter.cs
- CharacterString.cs
- WebPartConnectionsConnectVerb.cs
- DoubleAnimation.cs
- PixelShader.cs
- TextWriterEngine.cs
- PagedDataSource.cs
- TableRow.cs
- PageStatePersister.cs
- StylusButton.cs
- LinqDataSourceValidationException.cs