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
- MetafileHeaderWmf.cs
- FastPropertyAccessor.cs
- Attributes.cs
- hresults.cs
- DataGridViewColumnCollection.cs
- View.cs
- MimeXmlReflector.cs
- ConditionBrowserDialog.cs
- DeferrableContent.cs
- PolyBezierSegment.cs
- SoapAttributes.cs
- VisualStateManager.cs
- ApplicationBuildProvider.cs
- DataSourceCache.cs
- DocumentPageViewAutomationPeer.cs
- xmlfixedPageInfo.cs
- HttpTransportBindingElement.cs
- AssemblyUtil.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DefaultTraceListener.cs
- CacheVirtualItemsEvent.cs
- FlowDocument.cs
- FormViewDeletedEventArgs.cs
- MethodAccessException.cs
- ValidateNames.cs
- RowUpdatingEventArgs.cs
- SynchronizationContext.cs
- MessageBox.cs
- ExeConfigurationFileMap.cs
- DataSetUtil.cs
- ProviderConnectionPointCollection.cs
- CodeGenerator.cs
- CodeExpressionCollection.cs
- SemanticBasicElement.cs
- IndicCharClassifier.cs
- SqlInternalConnection.cs
- DataErrorValidationRule.cs
- SiteMapDataSource.cs
- ControlCollection.cs
- WebAdminConfigurationHelper.cs
- AnnotationDocumentPaginator.cs
- EntityRecordInfo.cs
- RtfToXamlReader.cs
- PartialCachingControl.cs
- UrlPath.cs
- TextPattern.cs
- Assembly.cs
- WrapPanel.cs
- AnnotationHelper.cs
- VersionedStream.cs
- ListView.cs
- XmlILModule.cs
- ControlFilterExpression.cs
- FieldToken.cs
- DecimalConstantAttribute.cs
- ChangeNode.cs
- KoreanLunisolarCalendar.cs
- CaseInsensitiveComparer.cs
- PixelFormats.cs
- CultureTable.cs
- XmlSecureResolver.cs
- DescendantQuery.cs
- DispatcherProcessingDisabled.cs
- FragmentNavigationEventArgs.cs
- PrinterResolution.cs
- TraceLog.cs
- SafeNativeMethods.cs
- HttpContext.cs
- SimpleType.cs
- WrappedIUnknown.cs
- FilterQueryOptionExpression.cs
- TimestampInformation.cs
- Keyboard.cs
- EpmSyndicationContentSerializer.cs
- ZoneLinkButton.cs
- IntegerFacetDescriptionElement.cs
- Misc.cs
- CryptoApi.cs
- TextServicesProperty.cs
- XmlBoundElement.cs
- CriticalHandle.cs
- MorphHelper.cs
- Clipboard.cs
- ContainerSelectorGlyph.cs
- URIFormatException.cs
- UInt64Converter.cs
- XmlNullResolver.cs
- StringWriter.cs
- StructuredCompositeActivityDesigner.cs
- FtpCachePolicyElement.cs
- WindowsListViewGroupHelper.cs
- PostBackOptions.cs
- FieldNameLookup.cs
- ProfileSection.cs
- EventNotify.cs
- XsltConvert.cs
- XmlWrappingReader.cs
- ExpandSegment.cs
- LineBreak.cs
- ListViewInsertEventArgs.cs