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
- DataGridViewCellStateChangedEventArgs.cs
- DateTimeAutomationPeer.cs
- PrinterSettings.cs
- ToolStrip.cs
- ProvideValueServiceProvider.cs
- HttpClientCertificate.cs
- ListView.cs
- PropertyEmitter.cs
- EasingQuaternionKeyFrame.cs
- NotifyInputEventArgs.cs
- SqlRowUpdatingEvent.cs
- ResourceManagerWrapper.cs
- DataBoundLiteralControl.cs
- MatrixTransform.cs
- InitializingNewItemEventArgs.cs
- AspNetHostingPermission.cs
- TokenBasedSetEnumerator.cs
- SocketInformation.cs
- NullReferenceException.cs
- RelationshipConverter.cs
- Stroke.cs
- InsufficientMemoryException.cs
- MultilineStringConverter.cs
- XmlSchemaObjectTable.cs
- XmlnsPrefixAttribute.cs
- SoapServerProtocol.cs
- InputProviderSite.cs
- TransportConfigurationTypeElement.cs
- GridViewRowPresenterBase.cs
- PropertyEntry.cs
- HandlerBase.cs
- Roles.cs
- SuspendDesigner.cs
- XmlILStorageConverter.cs
- KnownAssembliesSet.cs
- Control.cs
- IndicFontClient.cs
- SystemIPInterfaceProperties.cs
- SevenBitStream.cs
- DeclarativeCatalogPart.cs
- DbMetaDataFactory.cs
- TextElementEditingBehaviorAttribute.cs
- HttpCapabilitiesEvaluator.cs
- TransactionFlowBindingElement.cs
- RectangleHotSpot.cs
- WebPartExportVerb.cs
- AsyncOperationManager.cs
- SafeLocalMemHandle.cs
- PointConverter.cs
- ManifestResourceInfo.cs
- DataGridViewCellCancelEventArgs.cs
- User.cs
- TemplateNameScope.cs
- FontSource.cs
- ToolStripLocationCancelEventArgs.cs
- DataStorage.cs
- SafeFreeMibTable.cs
- ZipFileInfo.cs
- ForAllOperator.cs
- SchemaNamespaceManager.cs
- FileIOPermission.cs
- NameService.cs
- ServiceXNameTypeConverter.cs
- CharAnimationBase.cs
- WorkflowInlining.cs
- CreateParams.cs
- DashStyle.cs
- CngAlgorithmGroup.cs
- CommandBinding.cs
- ProxyWebPart.cs
- ErrorWrapper.cs
- StructureChangedEventArgs.cs
- PassportPrincipal.cs
- SmiRequestExecutor.cs
- ValueQuery.cs
- MediaScriptCommandRoutedEventArgs.cs
- TransportSecurityBindingElement.cs
- ObfuscationAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- PageCatalogPart.cs
- BreakRecordTable.cs
- DataGridTablesFactory.cs
- wmiprovider.cs
- ConnectionStringsExpressionBuilder.cs
- Exception.cs
- PackageStore.cs
- PermissionListSet.cs
- DrawingState.cs
- ScopelessEnumAttribute.cs
- WebServiceClientProxyGenerator.cs
- PropertyGrid.cs
- DetailsViewRowCollection.cs
- ActivatedMessageQueue.cs
- loginstatus.cs
- ServiceProviders.cs
- ToolbarAUtomationPeer.cs
- SourceFileInfo.cs
- GeometryDrawing.cs
- Oid.cs
- MessagePartSpecification.cs