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
- sqlstateclientmanager.cs
- shaperfactoryquerycacheentry.cs
- ActiveDocumentEvent.cs
- DrawingAttributes.cs
- UrlPath.cs
- XmlCharType.cs
- IDispatchConstantAttribute.cs
- ElapsedEventArgs.cs
- ServiceAuthorizationElement.cs
- ScriptManager.cs
- SemanticValue.cs
- IgnoreFlushAndCloseStream.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CodeStatement.cs
- UriSection.cs
- RTLAwareMessageBox.cs
- ScriptingJsonSerializationSection.cs
- WindowPatternIdentifiers.cs
- ScriptModule.cs
- SHA512Managed.cs
- BufferedWebEventProvider.cs
- WindowsAltTab.cs
- DataSourceCacheDurationConverter.cs
- TagPrefixCollection.cs
- DiagnosticStrings.cs
- StructuredTypeInfo.cs
- SectionVisual.cs
- XmlAnyElementAttributes.cs
- CultureMapper.cs
- ImageList.cs
- FileSystemEventArgs.cs
- FamilyCollection.cs
- SystemWebCachingSectionGroup.cs
- Lasso.cs
- COM2PropertyBuilderUITypeEditor.cs
- Array.cs
- PriorityChain.cs
- DataErrorValidationRule.cs
- EntityParameterCollection.cs
- DefaultPrintController.cs
- StylusPointCollection.cs
- CodeParameterDeclarationExpression.cs
- RectangleConverter.cs
- RegexRunner.cs
- AuthenticationSection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- JsonSerializer.cs
- InputMethodStateChangeEventArgs.cs
- QueryComponents.cs
- TableLayoutStyle.cs
- RectAnimationUsingKeyFrames.cs
- TransactionManager.cs
- GenericParameterDataContract.cs
- StringWriter.cs
- Configuration.cs
- StringArrayEditor.cs
- FormatException.cs
- AxHost.cs
- DataGridViewHeaderCell.cs
- KeyTime.cs
- TabOrder.cs
- InternalConfigRoot.cs
- EventKeyword.cs
- _SecureChannel.cs
- FixedSOMGroup.cs
- EntityDataSourceViewSchema.cs
- FormViewActionList.cs
- ToolStripLabel.cs
- Margins.cs
- CapacityStreamGeometryContext.cs
- AlphabeticalEnumConverter.cs
- GridItemCollection.cs
- RegexWriter.cs
- TimeStampChecker.cs
- SortedDictionary.cs
- LambdaExpression.cs
- CredentialManagerDialog.cs
- TemplateControlParser.cs
- Rights.cs
- ValidationHelper.cs
- SerTrace.cs
- TransportSecurityBindingElement.cs
- Coordinator.cs
- ContentTextAutomationPeer.cs
- DynamicResourceExtension.cs
- DeviceSpecificChoiceCollection.cs
- NameValueFileSectionHandler.cs
- ControllableStoryboardAction.cs
- bidPrivateBase.cs
- DesignerForm.cs
- SQLRoleProvider.cs
- DocumentViewerConstants.cs
- ChannelSinkStacks.cs
- Utilities.cs
- HtmlTableRowCollection.cs
- RoleServiceManager.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RecommendedAsConfigurableAttribute.cs
- SafePointer.cs
- LogLogRecord.cs