Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LinkedResource.cs
- EventSinkHelperWriter.cs
- FreeFormDesigner.cs
- SystemUnicastIPAddressInformation.cs
- GraphicsContext.cs
- ColumnWidthChangingEvent.cs
- GenerateTemporaryTargetAssembly.cs
- UnsafeNativeMethods.cs
- SchemaObjectWriter.cs
- ParameterBuilder.cs
- GradientSpreadMethodValidation.cs
- TextEffect.cs
- ModelPropertyDescriptor.cs
- TableLayoutCellPaintEventArgs.cs
- Confirm.cs
- SHA512.cs
- InstanceLockQueryResult.cs
- TextServicesDisplayAttribute.cs
- EventProvider.cs
- NonceToken.cs
- IFlowDocumentViewer.cs
- DrawingContextWalker.cs
- EventEntry.cs
- ThreadStartException.cs
- OrderablePartitioner.cs
- ConfigurationManagerHelper.cs
- PowerEase.cs
- MenuItem.cs
- ConfigUtil.cs
- DiagnosticsConfigurationHandler.cs
- TemplateXamlParser.cs
- CngUIPolicy.cs
- RegexWriter.cs
- RoutedUICommand.cs
- SecurityUtils.cs
- ContextTokenTypeConverter.cs
- DrawToolTipEventArgs.cs
- EncryptedData.cs
- RepeaterItem.cs
- FormatException.cs
- FontInfo.cs
- TargetControlTypeCache.cs
- UnsafeNativeMethods.cs
- ToolboxItemAttribute.cs
- BamlResourceDeserializer.cs
- MobileControlsSection.cs
- NumericUpDownAcceleration.cs
- CodeMemberEvent.cs
- HotCommands.cs
- BridgeDataRecord.cs
- EmptyQuery.cs
- SessionIDManager.cs
- IconBitmapDecoder.cs
- UnicastIPAddressInformationCollection.cs
- TraceFilter.cs
- TrackPoint.cs
- DataTable.cs
- CacheMemory.cs
- CacheModeValueSerializer.cs
- XmlTypeAttribute.cs
- Region.cs
- WithStatement.cs
- RemotingSurrogateSelector.cs
- SearchExpression.cs
- ParameterReplacerVisitor.cs
- ServicePointManagerElement.cs
- Environment.cs
- MenuItemStyleCollection.cs
- LocalServiceSecuritySettings.cs
- AsymmetricCryptoHandle.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Run.cs
- ClassValidator.cs
- SafeArrayRankMismatchException.cs
- UIElementCollection.cs
- XhtmlTextWriter.cs
- MappingSource.cs
- ProbeMatchesApril2005.cs
- ObjectView.cs
- ListViewGroupItemCollection.cs
- WebPartChrome.cs
- DataServiceProviderWrapper.cs
- LineInfo.cs
- IntellisenseTextBox.designer.cs
- WeakReadOnlyCollection.cs
- DataView.cs
- BitmapEffectGroup.cs
- XmlSchemaAny.cs
- DiscoveryCallbackBehavior.cs
- ContentControl.cs
- ColorDialog.cs
- HttpConfigurationSystem.cs
- Viewport3DAutomationPeer.cs
- XmlEnumAttribute.cs
- FormViewDeletedEventArgs.cs
- HijriCalendar.cs
- RestClientProxyHandler.cs
- Polygon.cs
- MLangCodePageEncoding.cs
- InstanceDescriptor.cs