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
- Symbol.cs
- ProtocolsSection.cs
- DataAccessor.cs
- indexingfiltermarshaler.cs
- MouseGestureValueSerializer.cs
- TdsParserStateObject.cs
- SqlCommandBuilder.cs
- DateTimeConverter.cs
- SoapSchemaImporter.cs
- ExtensionWindowResizeGrip.cs
- Int32AnimationBase.cs
- DataList.cs
- XmlChildNodes.cs
- BigInt.cs
- Variant.cs
- ProcessModule.cs
- TreeBuilderXamlTranslator.cs
- OverrideMode.cs
- CommandHelpers.cs
- FixedSOMLineRanges.cs
- QuadraticBezierSegment.cs
- ThemeableAttribute.cs
- SectionXmlInfo.cs
- HtmlInputText.cs
- BitmapEffectDrawing.cs
- PersianCalendar.cs
- NonVisualControlAttribute.cs
- SRGSCompiler.cs
- MDIClient.cs
- PrivateFontCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- xsdvalidator.cs
- DynamicPropertyReader.cs
- DivideByZeroException.cs
- StandardTransformFactory.cs
- NetTcpSecurity.cs
- SafeNativeMethodsOther.cs
- TransactionScope.cs
- StringOutput.cs
- MSAANativeProvider.cs
- AttributeCollection.cs
- StrongNameMembershipCondition.cs
- SafeReadContext.cs
- RuntimeEnvironment.cs
- DataGridViewColumnCollection.cs
- DesignerCommandSet.cs
- PingReply.cs
- InputMethodStateChangeEventArgs.cs
- KeyValueSerializer.cs
- HtmlInputPassword.cs
- WebPartDescription.cs
- DataGridCell.cs
- MouseGestureConverter.cs
- TextEditorThreadLocalStore.cs
- NameTable.cs
- TextContainer.cs
- TextEditorSelection.cs
- TypePresenter.xaml.cs
- PropertyDescriptorCollection.cs
- ActivityMarkupSerializer.cs
- DecimalSumAggregationOperator.cs
- Constants.cs
- sqlser.cs
- SqlRowUpdatedEvent.cs
- SetterBase.cs
- KeyboardNavigation.cs
- SQLMembershipProvider.cs
- TextElementCollectionHelper.cs
- PriorityItem.cs
- MenuItemAutomationPeer.cs
- WorkflowItemPresenter.cs
- formatter.cs
- BooleanProjectedSlot.cs
- XmlDataLoader.cs
- MinimizableAttributeTypeConverter.cs
- ColorTransform.cs
- SystemIPGlobalProperties.cs
- PropertyFilterAttribute.cs
- MetafileHeader.cs
- Clipboard.cs
- RightsManagementPermission.cs
- DescendantOverDescendantQuery.cs
- TypePropertyEditor.cs
- BitmapEffectGeneralTransform.cs
- ManifestBasedResourceGroveler.cs
- QueryStringConverter.cs
- SkinBuilder.cs
- DataControlImageButton.cs
- XmlIterators.cs
- ExpanderAutomationPeer.cs
- TypefaceCollection.cs
- FreezableDefaultValueFactory.cs
- CursorInteropHelper.cs
- SafeBitVector32.cs
- FormatterServices.cs
- ElementHost.cs
- InternalBufferOverflowException.cs
- LeftCellWrapper.cs
- MissingSatelliteAssemblyException.cs
- ThreadStaticAttribute.cs