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
- StrokeCollectionConverter.cs
- Input.cs
- TrustLevelCollection.cs
- ComEventsSink.cs
- baseshape.cs
- SafeNativeMethods.cs
- IncomingWebResponseContext.cs
- ObjectComplexPropertyMapping.cs
- ActivityDesignerLayoutSerializers.cs
- ReadOnlyHierarchicalDataSource.cs
- SynchronizedDisposablePool.cs
- TdsEnums.cs
- TypeTypeConverter.cs
- TypeForwardedToAttribute.cs
- CodeRemoveEventStatement.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FragmentQueryKB.cs
- Timer.cs
- BackStopAuthenticationModule.cs
- DataGridColumnsPage.cs
- SendActivityDesigner.cs
- WebSysDisplayNameAttribute.cs
- MachineKeyConverter.cs
- PathFigure.cs
- AppDomainAttributes.cs
- followingsibling.cs
- WindowsPrincipal.cs
- XPathArrayIterator.cs
- Comparer.cs
- HierarchicalDataTemplate.cs
- WebReferencesBuildProvider.cs
- COM2IPerPropertyBrowsingHandler.cs
- CapabilitiesRule.cs
- SignerInfo.cs
- EventLogPermission.cs
- QueryValue.cs
- OleDbParameter.cs
- HashHelper.cs
- ScheduleChanges.cs
- ToolStripRendererSwitcher.cs
- NameValueConfigurationCollection.cs
- HtmlFormAdapter.cs
- OlePropertyStructs.cs
- Soap.cs
- EventsTab.cs
- AttributeEmitter.cs
- TCPListener.cs
- OdbcInfoMessageEvent.cs
- UserControl.cs
- PreviewKeyDownEventArgs.cs
- ThaiBuddhistCalendar.cs
- OleDbMetaDataFactory.cs
- DetailsViewUpdatedEventArgs.cs
- SystemColors.cs
- WorkflowWebHostingModule.cs
- PreProcessInputEventArgs.cs
- FontConverter.cs
- ExtendedPropertyDescriptor.cs
- WebPartConnectionsConfigureVerb.cs
- DataKey.cs
- SchemaObjectWriter.cs
- BlockCollection.cs
- XPathNavigator.cs
- DrawListViewColumnHeaderEventArgs.cs
- DefaultTextStoreTextComposition.cs
- Win32.cs
- SqlVisitor.cs
- StorageInfo.cs
- AssociationSetEnd.cs
- TableRow.cs
- ResourceManager.cs
- X509Utils.cs
- HighContrastHelper.cs
- WebProxyScriptElement.cs
- ProfileEventArgs.cs
- FrameworkElementAutomationPeer.cs
- CodeTypeReferenceSerializer.cs
- DocumentXPathNavigator.cs
- SafeFileHandle.cs
- CommandDevice.cs
- RectConverter.cs
- XmlSchemaSimpleTypeList.cs
- FlowDocument.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- JulianCalendar.cs
- Rfc2898DeriveBytes.cs
- FileChangesMonitor.cs
- CancellationToken.cs
- ReliableRequestSessionChannel.cs
- NTAccount.cs
- SwitchExpression.cs
- AutoGeneratedField.cs
- XmlSchemaSubstitutionGroup.cs
- EventLogEntry.cs
- RadioButton.cs
- BinaryFormatter.cs
- BindingContext.cs
- DiscoveryInnerClientAdhocCD1.cs
- XmlAttribute.cs
- PEFileEvidenceFactory.cs