Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HtmlImage.cs
- ProtectedConfigurationSection.cs
- ViewGenResults.cs
- FastEncoderWindow.cs
- WebPartUtil.cs
- HostedElements.cs
- InvalidCommandTreeException.cs
- OrderPreservingMergeHelper.cs
- ConnectAlgorithms.cs
- DispatcherEventArgs.cs
- DocumentOrderComparer.cs
- PrincipalPermission.cs
- CapacityStreamGeometryContext.cs
- _IPv4Address.cs
- MultipleViewPatternIdentifiers.cs
- FunctionQuery.cs
- TransformedBitmap.cs
- AjaxFrameworkAssemblyAttribute.cs
- WebPartDescriptionCollection.cs
- TreeNodeConverter.cs
- ValueQuery.cs
- SerializationStore.cs
- QilUnary.cs
- ChtmlTextWriter.cs
- BuildManager.cs
- AuthenticatedStream.cs
- XmlSerializationGeneratedCode.cs
- DesignerDataConnection.cs
- PartEditor.cs
- TrackingWorkflowEventArgs.cs
- Type.cs
- GreenMethods.cs
- XmlSchemaObject.cs
- ReadWriteSpinLock.cs
- GenericPrincipal.cs
- DesignerDataSchemaClass.cs
- DataSourceCache.cs
- RemoteWebConfigurationHost.cs
- SafeNativeMethodsOther.cs
- MethodMessage.cs
- Sql8ExpressionRewriter.cs
- HandlerFactoryCache.cs
- XmlSerializableReader.cs
- XmlSerializerAssemblyAttribute.cs
- UnmanagedHandle.cs
- BehaviorEditorPart.cs
- DetailsViewPageEventArgs.cs
- Timeline.cs
- DiscoveryDocument.cs
- DataGridTablesFactory.cs
- StringUtil.cs
- ContentDisposition.cs
- StringValidator.cs
- XmlTypeMapping.cs
- RadioButtonBaseAdapter.cs
- FileReservationCollection.cs
- BindingMemberInfo.cs
- PageRequestManager.cs
- Panel.cs
- WindowVisualStateTracker.cs
- WebServiceEnumData.cs
- SplitterPanel.cs
- ThreadAttributes.cs
- SqlXml.cs
- TemplateControlCodeDomTreeGenerator.cs
- CheckBoxFlatAdapter.cs
- ScaleTransform3D.cs
- ZoneMembershipCondition.cs
- ActivitySurrogate.cs
- StateMachineWorkflowInstance.cs
- MediaPlayer.cs
- Missing.cs
- SqlUnionizer.cs
- smtpconnection.cs
- RSAProtectedConfigurationProvider.cs
- CancellationTokenRegistration.cs
- DropShadowEffect.cs
- SubqueryTrackingVisitor.cs
- CultureInfoConverter.cs
- RuntimeConfigLKG.cs
- ToolStripSeparator.cs
- FileEnumerator.cs
- Scene3D.cs
- DataFormat.cs
- DesignerRegionCollection.cs
- XPathNavigatorReader.cs
- KeyProperty.cs
- EventHandlers.cs
- ThreadStaticAttribute.cs
- ServiceMetadataContractBehavior.cs
- NativeMethods.cs
- XPathEmptyIterator.cs
- SemanticResolver.cs
- ContractReference.cs
- Calendar.cs
- TreeViewItem.cs
- NativeCppClassAttribute.cs
- SQLInt32Storage.cs
- OleTxTransactionInfo.cs
- ErrorEventArgs.cs