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
- OleDbParameterCollection.cs
- ExpressionBinding.cs
- InputScope.cs
- HyperLinkColumn.cs
- EntityReference.cs
- SmiConnection.cs
- SingleAnimation.cs
- NavigationHelper.cs
- InlineCollection.cs
- HostingPreferredMapPath.cs
- WebMessageBodyStyleHelper.cs
- TextContainer.cs
- compensatingcollection.cs
- EventDescriptor.cs
- NativeMethodsOther.cs
- EndpointIdentityExtension.cs
- TargetParameterCountException.cs
- ManagementInstaller.cs
- InvalidStoreProtectionKeyException.cs
- SqlBulkCopy.cs
- FixedHighlight.cs
- OptimalTextSource.cs
- ResXResourceWriter.cs
- Stylesheet.cs
- HtmlImage.cs
- ResXResourceSet.cs
- InfoCardSymmetricAlgorithm.cs
- StaticTextPointer.cs
- TableLayoutSettings.cs
- _Semaphore.cs
- HtmlFormParameterReader.cs
- CodeValidator.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- UnitySerializationHolder.cs
- ResumeStoryboard.cs
- PeerUnsafeNativeMethods.cs
- DataServiceBuildProvider.cs
- SQLSingle.cs
- KeyGesture.cs
- DataRelation.cs
- HostnameComparisonMode.cs
- HostSecurityManager.cs
- FunctionGenerator.cs
- SynchronizedDispatch.cs
- StreamUpgradeBindingElement.cs
- SamlSecurityTokenAuthenticator.cs
- X509CertificateCollection.cs
- EndpointDispatcher.cs
- XmlSchemaSimpleTypeList.cs
- DescendantQuery.cs
- TypeElement.cs
- ElementHostPropertyMap.cs
- CodeIterationStatement.cs
- TrackBar.cs
- DragEvent.cs
- WebBrowserContainer.cs
- UserPreferenceChangingEventArgs.cs
- DataGridCellItemAutomationPeer.cs
- Int16AnimationUsingKeyFrames.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- FormatConvertedBitmap.cs
- ConfigurationManagerInternalFactory.cs
- CaseInsensitiveHashCodeProvider.cs
- ProtectedProviderSettings.cs
- TrackingRecordPreFilter.cs
- ReflectEventDescriptor.cs
- MergeExecutor.cs
- XPathNodeList.cs
- Form.cs
- FixedDocumentSequencePaginator.cs
- AttachmentCollection.cs
- DirectoryLocalQuery.cs
- ConfigurationStrings.cs
- SmtpNtlmAuthenticationModule.cs
- Dictionary.cs
- BindToObject.cs
- MultilineStringConverter.cs
- AmbientValueAttribute.cs
- Binding.cs
- CorrelationService.cs
- InputScope.cs
- DataGridHeaderBorder.cs
- DetailsViewUpdatedEventArgs.cs
- UIPermission.cs
- UTF8Encoding.cs
- AnnotationHelper.cs
- MarkupExtensionParser.cs
- StateMachine.cs
- ConstraintCollection.cs
- DynamicExpression.cs
- MiniAssembly.cs
- XPathException.cs
- Serializer.cs
- EntitySqlQueryBuilder.cs
- JsonGlobals.cs
- RuleConditionDialog.Designer.cs
- CommandManager.cs
- MSAANativeProvider.cs
- CachedRequestParams.cs
- LazyInitializer.cs