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
- CfgSemanticTag.cs
- IdentityManager.cs
- SqlDataAdapter.cs
- FixedSOMPage.cs
- WindowsStatic.cs
- ScrollBarAutomationPeer.cs
- SQlBooleanStorage.cs
- CompilerErrorCollection.cs
- Argument.cs
- ToolboxItem.cs
- WsatAdminException.cs
- QueryOutputWriter.cs
- HierarchicalDataBoundControl.cs
- DbProviderFactoriesConfigurationHandler.cs
- TextRunCache.cs
- GenericWebPart.cs
- PerfCounters.cs
- LogAppendAsyncResult.cs
- XmlDictionaryString.cs
- X509Logo.cs
- InboundActivityHelper.cs
- SafeArrayTypeMismatchException.cs
- SQLDouble.cs
- FileDocument.cs
- SmiEventSink_Default.cs
- MutableAssemblyCacheEntry.cs
- Publisher.cs
- CaretElement.cs
- TabRenderer.cs
- SMSvcHost.cs
- BitmapEncoder.cs
- ByteViewer.cs
- HandlerMappingMemo.cs
- ConfigurationLockCollection.cs
- TargetParameterCountException.cs
- QilInvokeLateBound.cs
- SQLMoney.cs
- TextBlock.cs
- SafeHandle.cs
- Module.cs
- ReceiveSecurityHeader.cs
- DataGridViewLayoutData.cs
- TextView.cs
- WpfPayload.cs
- XmlSiteMapProvider.cs
- AsymmetricSignatureDeformatter.cs
- MulticastDelegate.cs
- followingquery.cs
- PseudoWebRequest.cs
- MachineKeyConverter.cs
- DocumentScope.cs
- bindurihelper.cs
- SymbolEqualComparer.cs
- HandleRef.cs
- SelectionPattern.cs
- HMACSHA1.cs
- Delegate.cs
- DataStorage.cs
- DesignerActionVerbItem.cs
- MobileTextWriter.cs
- StyleSelector.cs
- Column.cs
- PageBuildProvider.cs
- BlurBitmapEffect.cs
- IPHostEntry.cs
- RoleManagerModule.cs
- Membership.cs
- XamlFigureLengthSerializer.cs
- HyperLink.cs
- StretchValidation.cs
- DiscoveryOperationContext.cs
- InternalRelationshipCollection.cs
- CompilerLocalReference.cs
- EntityDataSourceStatementEditorForm.cs
- ResetableIterator.cs
- SqlNodeAnnotations.cs
- CodeCommentStatementCollection.cs
- MethodImplAttribute.cs
- XmlDictionaryWriter.cs
- ListViewSelectEventArgs.cs
- ImageConverter.cs
- AppDomainUnloadedException.cs
- ConvertEvent.cs
- MediaTimeline.cs
- HandleCollector.cs
- EmptyStringExpandableObjectConverter.cs
- sitestring.cs
- UserControlDocumentDesigner.cs
- WebServiceData.cs
- DocumentViewer.cs
- RoutedPropertyChangedEventArgs.cs
- CustomError.cs
- DynamicMetaObject.cs
- SqlCrossApplyToCrossJoin.cs
- OdbcHandle.cs
- BinaryObjectReader.cs
- SoapIncludeAttribute.cs
- ElapsedEventArgs.cs
- QuaternionConverter.cs
- SqlRewriteScalarSubqueries.cs