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
- Scene3D.cs
- SimpleHandlerBuildProvider.cs
- DrawingGroup.cs
- WebPartUserCapability.cs
- HTTPNotFoundHandler.cs
- DataFormats.cs
- EventEntry.cs
- ServicesExceptionNotHandledEventArgs.cs
- ColorTransformHelper.cs
- FormViewPageEventArgs.cs
- XmlSchemaSet.cs
- DiffuseMaterial.cs
- Span.cs
- TreeSet.cs
- QuaternionRotation3D.cs
- ToolStripMenuItemCodeDomSerializer.cs
- ViewStateException.cs
- PrivateFontCollection.cs
- UnsafeNativeMethodsTablet.cs
- WebPartTransformerAttribute.cs
- HTMLTagNameToTypeMapper.cs
- CacheModeValueSerializer.cs
- InfoCardCryptoHelper.cs
- SqlBuffer.cs
- XsltSettings.cs
- UnsafeNativeMethods.cs
- IOException.cs
- DataServiceStreamProviderWrapper.cs
- XmlKeywords.cs
- UnsupportedPolicyOptionsException.cs
- LogLogRecord.cs
- CriticalHandle.cs
- TextBreakpoint.cs
- HeaderedContentControl.cs
- MeasureItemEvent.cs
- XsltContext.cs
- ProviderUtil.cs
- Focus.cs
- ValueHandle.cs
- XPathSelfQuery.cs
- PageStatePersister.cs
- clipboard.cs
- PerformanceCounterNameAttribute.cs
- RemoteWebConfigurationHost.cs
- Number.cs
- SQLBytes.cs
- ResourceManagerWrapper.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ShortcutKeysEditor.cs
- BitSet.cs
- ClientTarget.cs
- EntityDataSourceViewSchema.cs
- WorkflowItemsPresenter.cs
- DataGridLength.cs
- Transform.cs
- ContainerParaClient.cs
- RoleGroup.cs
- KeyedCollection.cs
- Blend.cs
- SspiNegotiationTokenProviderState.cs
- UInt64Storage.cs
- ObjectConverter.cs
- ExtractedStateEntry.cs
- GiveFeedbackEventArgs.cs
- ConfigurationFileMap.cs
- Condition.cs
- DataContractJsonSerializerOperationFormatter.cs
- FilteredDataSetHelper.cs
- DataFormat.cs
- CharacterBuffer.cs
- WindowsGraphicsCacheManager.cs
- PropertyGrid.cs
- IListConverters.cs
- ApplyTemplatesAction.cs
- DbDataRecord.cs
- ConnectionPoint.cs
- XPathSingletonIterator.cs
- DBSchemaRow.cs
- WebConfigurationFileMap.cs
- ArrayMergeHelper.cs
- ProcessModelSection.cs
- LineMetrics.cs
- MessageBox.cs
- AttachmentService.cs
- NetMsmqBindingElement.cs
- StringDictionary.cs
- WebPartMovingEventArgs.cs
- DoubleCollection.cs
- SiteMembershipCondition.cs
- FileLevelControlBuilderAttribute.cs
- WebPartDisplayModeCollection.cs
- DeploymentSection.cs
- DataGridToolTip.cs
- ResourceDictionaryCollection.cs
- DataKey.cs
- SharedUtils.cs
- ComponentCollection.cs
- RestHandler.cs
- ErrorCodes.cs
- DbBuffer.cs