Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationCredentials.cs / 2 / FormsAuthenticationCredentials.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /***************************************************************************** From machine.config******************************************************************************/ namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; // class AuthenticationSection [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationCredentials : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propUsers = new ConfigurationProperty(null, typeof(FormsAuthenticationUserCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); private static readonly ConfigurationProperty _propPasswordFormat = new ConfigurationProperty("passwordFormat", typeof(FormsAuthPasswordFormat), FormsAuthPasswordFormat.SHA1, ConfigurationPropertyOptions.None); static FormsAuthenticationCredentials() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propUsers); _properties.Add(_propPasswordFormat); } public FormsAuthenticationCredentials() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)] public FormsAuthenticationUserCollection Users { get { return (FormsAuthenticationUserCollection)base[_propUsers]; } } [ConfigurationProperty("passwordFormat", DefaultValue = FormsAuthPasswordFormat.SHA1)] public FormsAuthPasswordFormat PasswordFormat { get { return (FormsAuthPasswordFormat)base[_propPasswordFormat]; } set { base[_propPasswordFormat] = value; } } } // class FormsAuthenticationCredentials }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataConnectionHelper.cs
- DataServiceException.cs
- ProcessHostMapPath.cs
- mongolianshape.cs
- CodeLabeledStatement.cs
- Internal.cs
- LogManagementAsyncResult.cs
- CodeDirectiveCollection.cs
- XmlBinaryReaderSession.cs
- Visual3DCollection.cs
- LinkDescriptor.cs
- ListBindingHelper.cs
- Rect3DValueSerializer.cs
- GeometryCollection.cs
- RC2CryptoServiceProvider.cs
- WebPartConnectionsConnectVerb.cs
- EntityUtil.cs
- GuidelineCollection.cs
- AutomationPropertyInfo.cs
- CompilerScopeManager.cs
- OperationCanceledException.cs
- UpDownEvent.cs
- XmlSchemaObject.cs
- ListView.cs
- AsymmetricSignatureFormatter.cs
- FamilyCollection.cs
- SqlCommand.cs
- CodeBlockBuilder.cs
- CodeTypeReference.cs
- ProfileSettingsCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlDictionary.cs
- GlyphTypeface.cs
- HtmlInputText.cs
- errorpatternmatcher.cs
- DeviceContext.cs
- CodeCastExpression.cs
- EntityStoreSchemaGenerator.cs
- DesignTimeTemplateParser.cs
- IgnoreFileBuildProvider.cs
- SignedXml.cs
- Pen.cs
- FontConverter.cs
- XmlSchemaAttributeGroupRef.cs
- EditorZone.cs
- TextLineBreak.cs
- MsmqHostedTransportConfiguration.cs
- HtmlWindowCollection.cs
- UInt16Storage.cs
- CipherData.cs
- UnicodeEncoding.cs
- Math.cs
- DataSourceProvider.cs
- BufferModesCollection.cs
- ColorDialog.cs
- MsmqIntegrationReceiveParameters.cs
- OrderByQueryOptionExpression.cs
- CodeBlockBuilder.cs
- DataTableTypeConverter.cs
- DelayDesigner.cs
- SchemaImporterExtension.cs
- XmlResolver.cs
- WebPartVerbCollection.cs
- DataGridViewRow.cs
- PeerResolverMode.cs
- GlobalEventManager.cs
- MLangCodePageEncoding.cs
- SQLUtility.cs
- DataGridViewCellParsingEventArgs.cs
- MetadataHelper.cs
- ExportOptions.cs
- ConfigurationStrings.cs
- InteropBitmapSource.cs
- SchemaLookupTable.cs
- QueryReaderSettings.cs
- FacetEnabledSchemaElement.cs
- BuildProviderAppliesToAttribute.cs
- CheckableControlBaseAdapter.cs
- Label.cs
- ServiceDefaults.cs
- UnsafeCollabNativeMethods.cs
- _ConnectionGroup.cs
- TcpClientChannel.cs
- GlobalItem.cs
- Application.cs
- ToolStripDropDownMenu.cs
- TypeSemantics.cs
- MetadataException.cs
- IxmlLineInfo.cs
- ReadOnlyTernaryTree.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CalendarDataBindingHandler.cs
- Baml2006KeyRecord.cs
- StandardTransformFactory.cs
- BasicHttpBinding.cs
- Missing.cs
- SafeFileMappingHandle.cs
- ResourceDescriptionAttribute.cs
- MemberNameValidator.cs
- DashStyles.cs