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
- FontWeights.cs
- ConfigurationSectionCollection.cs
- LocatorBase.cs
- Effect.cs
- ViewStateChangedEventArgs.cs
- URIFormatException.cs
- SyndicationDeserializer.cs
- WebSysDisplayNameAttribute.cs
- DataGridPagingPage.cs
- ProfileGroupSettings.cs
- Run.cs
- HandleRef.cs
- ContextMenuService.cs
- WindowsMenu.cs
- OracleDataAdapter.cs
- SoapElementAttribute.cs
- BuildProvider.cs
- ListControlActionList.cs
- CompositionAdorner.cs
- XmlSchemaValidator.cs
- HwndSubclass.cs
- OperatingSystemVersionCheck.cs
- RayMeshGeometry3DHitTestResult.cs
- ContentPresenter.cs
- ProfilePropertySettingsCollection.cs
- DragStartedEventArgs.cs
- StorageEntityTypeMapping.cs
- RoutedEventHandlerInfo.cs
- BookmarkCallbackWrapper.cs
- IChannel.cs
- RectangleConverter.cs
- PenContexts.cs
- LicenseContext.cs
- CodeAttributeDeclaration.cs
- FixedStringLookup.cs
- DLinqAssociationProvider.cs
- CallbackValidatorAttribute.cs
- SiteMembershipCondition.cs
- RemoteWebConfigurationHostStream.cs
- DataGridColumn.cs
- EdmComplexTypeAttribute.cs
- HtmlInputSubmit.cs
- odbcmetadatacollectionnames.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- WinFormsComponentEditor.cs
- RelationshipConverter.cs
- IPPacketInformation.cs
- X509Utils.cs
- EnumConverter.cs
- _emptywebproxy.cs
- EntitySqlQueryState.cs
- CommandManager.cs
- ISAPIWorkerRequest.cs
- Privilege.cs
- OdbcStatementHandle.cs
- XmlHierarchicalDataSourceView.cs
- ObjectKeyFrameCollection.cs
- InvalidPrinterException.cs
- UniformGrid.cs
- InvalidComObjectException.cs
- SqlDataReaderSmi.cs
- StyleSelector.cs
- PersistenceTypeAttribute.cs
- RenderData.cs
- ClusterRegistryConfigurationProvider.cs
- MessagePartDescriptionCollection.cs
- PointCollectionConverter.cs
- SiteMapDesignerDataSourceView.cs
- SchemaMapping.cs
- SessionEndedEventArgs.cs
- DataGridViewLayoutData.cs
- HyperLinkField.cs
- SqlEnums.cs
- EventWaitHandle.cs
- AsyncOperationManager.cs
- Quad.cs
- SymmetricAlgorithm.cs
- ImageSource.cs
- AttachedAnnotation.cs
- RectConverter.cs
- ProtectedProviderSettings.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PageClientProxyGenerator.cs
- ControlValuePropertyAttribute.cs
- Win32SafeHandles.cs
- DocumentOutline.cs
- DNS.cs
- CFStream.cs
- RealizationDrawingContextWalker.cs
- DelimitedListTraceListener.cs
- DataStreams.cs
- ControlType.cs
- ListViewPagedDataSource.cs
- SoapDocumentMethodAttribute.cs
- DecimalAnimationBase.cs
- RbTree.cs
- FontFamily.cs
- MimeXmlReflector.cs
- LoopExpression.cs
- EntityDataSourceContainerNameConverter.cs