Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationCredentials.cs / 1 / 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 } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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 } // 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
- SystemPens.cs
- EditingScopeUndoUnit.cs
- TableAutomationPeer.cs
- HttpClientProtocol.cs
- WinFormsUtils.cs
- VirtualizingStackPanel.cs
- CollectionBase.cs
- DataGridTableCollection.cs
- HostedHttpContext.cs
- PrefixHandle.cs
- NativeMethods.cs
- validation.cs
- WebControlParameterProxy.cs
- OraclePermission.cs
- TrackingLocation.cs
- ContextMenu.cs
- TakeQueryOptionExpression.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- DynamicRendererThreadManager.cs
- OdbcConnectionOpen.cs
- VirtualDirectoryMappingCollection.cs
- XmlParser.cs
- RepeatBehaviorConverter.cs
- LayeredChannelFactory.cs
- Typography.cs
- precedingsibling.cs
- SQLMembershipProvider.cs
- unsafenativemethodsother.cs
- ValidationException.cs
- HtmlInputSubmit.cs
- WebPartDisplayMode.cs
- Types.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ListItemParagraph.cs
- TextServicesCompartmentEventSink.cs
- SafeMILHandle.cs
- FormatException.cs
- TraceLevelStore.cs
- AccessibilityHelperForXpWin2k3.cs
- OwnerDrawPropertyBag.cs
- EntitySqlQueryCacheKey.cs
- XdrBuilder.cs
- XamlGridLengthSerializer.cs
- PropertyMappingExceptionEventArgs.cs
- AmbientValueAttribute.cs
- BinaryObjectWriter.cs
- CollectionEditorDialog.cs
- CapabilitiesRule.cs
- PopupRootAutomationPeer.cs
- MULTI_QI.cs
- WindowPatternIdentifiers.cs
- WebPartDisplayModeEventArgs.cs
- SingleSelectRootGridEntry.cs
- __Filters.cs
- AddInIpcChannel.cs
- FilterElement.cs
- QueryOutputWriter.cs
- BitmapEffectInputData.cs
- SQLRoleProvider.cs
- ScriptRef.cs
- AnonymousIdentificationSection.cs
- StreamingContext.cs
- AssemblyFilter.cs
- PartManifestEntry.cs
- PortCache.cs
- OleCmdHelper.cs
- EntityDataSource.cs
- HttpCacheVaryByContentEncodings.cs
- DataGridViewCellStyle.cs
- ListViewUpdateEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- VisualBrush.cs
- EmptyArray.cs
- NavigationPropertySingletonExpression.cs
- XmlCDATASection.cs
- GenericRootAutomationPeer.cs
- XmlSchemaInfo.cs
- ValidatingCollection.cs
- EnvironmentPermission.cs
- VisualStyleTypesAndProperties.cs
- RijndaelManaged.cs
- VBIdentifierName.cs
- HandlerFactoryCache.cs
- InfoCardTrace.cs
- PropertyMetadata.cs
- PointCollection.cs
- MLangCodePageEncoding.cs
- GeneralTransformCollection.cs
- SoapHttpTransportImporter.cs
- ThaiBuddhistCalendar.cs
- XmlToDatasetMap.cs
- CaseInsensitiveHashCodeProvider.cs
- GroupedContextMenuStrip.cs
- ThicknessKeyFrameCollection.cs
- TransformConverter.cs
- ChannelSettingsElement.cs
- CancellationToken.cs
- TreeNode.cs
- AdCreatedEventArgs.cs
- NetworkStream.cs