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
- Pipe.cs
- InlineObject.cs
- OleDbDataAdapter.cs
- EndCreateSecurityTokenRequest.cs
- SettingsContext.cs
- EntitySqlQueryCacheEntry.cs
- XmlHierarchicalEnumerable.cs
- AudienceUriMode.cs
- ObjectListSelectEventArgs.cs
- srgsitem.cs
- BindingNavigator.cs
- XmlSiteMapProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- UserPreferenceChangingEventArgs.cs
- Buffer.cs
- Match.cs
- OperationContractGenerationContext.cs
- XmlFormatExtensionPointAttribute.cs
- QueryPageSettingsEventArgs.cs
- DataKeyCollection.cs
- Encoding.cs
- ProxyFragment.cs
- CheckBoxRenderer.cs
- InstanceStore.cs
- Matrix.cs
- EntryIndex.cs
- TransformPattern.cs
- InputProviderSite.cs
- CodeParameterDeclarationExpression.cs
- DataComponentNameHandler.cs
- Substitution.cs
- SoapInteropTypes.cs
- VirtualizingPanel.cs
- CompositeCollection.cs
- DataAdapter.cs
- UnsafeNativeMethods.cs
- ArithmeticException.cs
- SingleAnimation.cs
- SizeLimitedCache.cs
- brushes.cs
- ChannelManager.cs
- DataGridItemEventArgs.cs
- SystemTcpStatistics.cs
- AspNetPartialTrustHelpers.cs
- DataRelation.cs
- WorkflowMarkupSerializerMapping.cs
- IndexOutOfRangeException.cs
- XamlToRtfParser.cs
- SQLDecimalStorage.cs
- FigureParaClient.cs
- KnownTypesHelper.cs
- DetailsViewModeEventArgs.cs
- DrawingCollection.cs
- BitmapSourceSafeMILHandle.cs
- PolyLineSegment.cs
- Int64Converter.cs
- ThreadExceptionEvent.cs
- RuleSetBrowserDialog.cs
- Msec.cs
- WebPartHelpVerb.cs
- HwndTarget.cs
- SqlFlattener.cs
- ScrollItemProviderWrapper.cs
- SqlCacheDependencyDatabase.cs
- EntityCommand.cs
- HtmlContainerControl.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- InputScopeNameConverter.cs
- OutputCacheSection.cs
- SqlTrackingService.cs
- SelectorAutomationPeer.cs
- DocumentGrid.cs
- SequentialOutput.cs
- AspNetRouteServiceHttpHandler.cs
- CommonGetThemePartSize.cs
- ComponentCollection.cs
- ArgumentNullException.cs
- RangeContentEnumerator.cs
- UnionCqlBlock.cs
- SafeThemeHandle.cs
- View.cs
- MediaTimeline.cs
- DataTableClearEvent.cs
- DrawingGroupDrawingContext.cs
- XmlSchemaCompilationSettings.cs
- SocketException.cs
- EpmContentDeSerializer.cs
- MatrixValueSerializer.cs
- DynamicMetaObject.cs
- ResourceIDHelper.cs
- WebPartAddingEventArgs.cs
- DataService.cs
- SafeNativeMethods.cs
- Invariant.cs
- TransactionException.cs
- FlowLayoutPanel.cs
- InputReport.cs
- Stack.cs
- ExpressionsCollectionEditor.cs
- SafeThreadHandle.cs