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
- Vector3DCollectionConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- DispatcherExceptionFilterEventArgs.cs
- HttpPostProtocolReflector.cs
- TrustLevel.cs
- Context.cs
- DesignerDataTableBase.cs
- HttpClientCertificate.cs
- InternalConfigHost.cs
- DataGridLengthConverter.cs
- WindowsScrollBar.cs
- TemplatePartAttribute.cs
- ReadOnlyDictionary.cs
- SID.cs
- DataObjectMethodAttribute.cs
- FacetValueContainer.cs
- PersistChildrenAttribute.cs
- UInt16Storage.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlEventCache.cs
- ToolStripOverflow.cs
- FormattedText.cs
- CornerRadius.cs
- SurrogateSelector.cs
- OutputWindow.cs
- KeyValueSerializer.cs
- StrokeNodeOperations.cs
- RefType.cs
- MasterPageCodeDomTreeGenerator.cs
- StorageTypeMapping.cs
- PropertyChangedEventArgs.cs
- CategoryList.cs
- VariableExpressionConverter.cs
- StateWorkerRequest.cs
- Asn1IntegerConverter.cs
- ProcessHostServerConfig.cs
- AppDomainShutdownMonitor.cs
- TransformedBitmap.cs
- TrackingMemoryStreamFactory.cs
- QilUnary.cs
- Compiler.cs
- TrustManagerPromptUI.cs
- MailAddress.cs
- BinaryObjectWriter.cs
- EnvelopeVersion.cs
- SchemaCompiler.cs
- Event.cs
- CultureTable.cs
- UnsafeCollabNativeMethods.cs
- ApplicationFileCodeDomTreeGenerator.cs
- NameScopePropertyAttribute.cs
- GridView.cs
- FixedSOMTableCell.cs
- FixedTextView.cs
- ObjectQueryProvider.cs
- HashHelper.cs
- CompatibleIComparer.cs
- ServicePointManagerElement.cs
- DependsOnAttribute.cs
- X509Extension.cs
- KerberosReceiverSecurityToken.cs
- DbModificationClause.cs
- WriteTimeStream.cs
- AnnotationService.cs
- InlineObject.cs
- ClientRuntimeConfig.cs
- BooleanFunctions.cs
- DataGridCellsPresenter.cs
- ErrorRuntimeConfig.cs
- ToolStripDesignerUtils.cs
- SectionXmlInfo.cs
- InlineCollection.cs
- HMACSHA1.cs
- DispatcherExceptionEventArgs.cs
- SQLMembershipProvider.cs
- HttpModuleActionCollection.cs
- ActivationArguments.cs
- ListBox.cs
- BreadCrumbTextConverter.cs
- LateBoundBitmapDecoder.cs
- Transform3DCollection.cs
- IndexedWhereQueryOperator.cs
- MenuRendererStandards.cs
- WebPartCollection.cs
- EncryptedKey.cs
- ContextItemManager.cs
- Buffer.cs
- TextBoxLine.cs
- SqlUtil.cs
- LassoSelectionBehavior.cs
- NumberSubstitution.cs
- PropertyGridEditorPart.cs
- WithParamAction.cs
- ProfessionalColors.cs
- ObjectQueryProvider.cs
- AuthorizationSection.cs
- RequestUriProcessor.cs
- ExtensibleClassFactory.cs
- AttributeProviderAttribute.cs
- MruCache.cs