Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OwnerDrawPropertyBag.cs
- WorkflowRuntimeServiceElement.cs
- SystemIcmpV4Statistics.cs
- GenericIdentity.cs
- ReflectionPermission.cs
- StylusPlugin.cs
- SiteMap.cs
- PassportPrincipal.cs
- MemoryFailPoint.cs
- ProfileEventArgs.cs
- SafeHandles.cs
- EventRoute.cs
- ClientRuntimeConfig.cs
- DataStreamFromComStream.cs
- WindowsFormsSectionHandler.cs
- PropertyItemInternal.cs
- DataListItemEventArgs.cs
- SoapAttributeOverrides.cs
- Stack.cs
- AudioDeviceOut.cs
- DataGridBoundColumn.cs
- IDQuery.cs
- CodePageEncoding.cs
- ServiceObjectContainer.cs
- XmlLanguageConverter.cs
- DataExchangeServiceBinder.cs
- XsltContext.cs
- RoleManagerModule.cs
- TrayIconDesigner.cs
- SequentialUshortCollection.cs
- safesecurityhelperavalon.cs
- AppDomainGrammarProxy.cs
- SerializerProvider.cs
- Region.cs
- TableLayoutRowStyleCollection.cs
- Base64Encoding.cs
- ISFTagAndGuidCache.cs
- OnOperation.cs
- DateTimeOffsetStorage.cs
- InteropBitmapSource.cs
- Point3DCollection.cs
- SizeAnimation.cs
- UpDownEvent.cs
- ISCIIEncoding.cs
- TextFindEngine.cs
- GcHandle.cs
- ExeConfigurationFileMap.cs
- PartialCachingAttribute.cs
- CheckoutException.cs
- UnsafeNativeMethodsPenimc.cs
- FontStyle.cs
- DataGridPageChangedEventArgs.cs
- _FtpControlStream.cs
- PersonalizablePropertyEntry.cs
- AlignmentYValidation.cs
- ViewStateException.cs
- StdValidatorsAndConverters.cs
- IsolatedStorageFile.cs
- AdornerPresentationContext.cs
- SqlDataSourceCache.cs
- MulticastNotSupportedException.cs
- DesignerDataTableBase.cs
- RouteParametersHelper.cs
- HMACSHA1.cs
- GridLengthConverter.cs
- ColorBuilder.cs
- DataGridViewCellEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- UIElementIsland.cs
- SerialReceived.cs
- SelectionUIHandler.cs
- AppDomainEvidenceFactory.cs
- Sentence.cs
- MaterialCollection.cs
- HttpFileCollection.cs
- Int16Animation.cs
- DeviceContexts.cs
- ResXResourceReader.cs
- BaseCodePageEncoding.cs
- XmlAttributeOverrides.cs
- ConstructorArgumentAttribute.cs
- AppDomainProtocolHandler.cs
- DeleteMemberBinder.cs
- TimeSpanValidatorAttribute.cs
- DynamicPropertyHolder.cs
- FastEncoderWindow.cs
- RenderDataDrawingContext.cs
- TableLayoutSettings.cs
- RolePrincipal.cs
- RSAPKCS1SignatureDeformatter.cs
- PeerNodeTraceRecord.cs
- DbParameterCollectionHelper.cs
- TextModifierScope.cs
- WebPartConnectionsEventArgs.cs
- FileClassifier.cs
- CodeTypeParameter.cs
- FontUnitConverter.cs
- UserControl.cs
- dbenumerator.cs
- CodePrimitiveExpression.cs