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 / FormsAuthenticationUser.cs / 1 / FormsAuthenticationUser.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; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationUser : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propName = new ConfigurationProperty("name", typeof(string), "", new LowerCaseStringConverter(), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propPassword = new ConfigurationProperty("password", typeof(string), "", ConfigurationPropertyOptions.IsRequired); static FormsAuthenticationUser() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propName); _properties.Add(_propPassword); } internal FormsAuthenticationUser() { } public FormsAuthenticationUser(String name, String password) : this() { Name = name.ToLower(CultureInfo.InvariantCulture); Password = password; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "")] [TypeConverter(typeof(LowerCaseStringConverter))] [StringValidator()] public string Name { get { return (string)base[_propName]; } set { base[_propName] = value; } } [ConfigurationProperty("password", IsRequired = true, DefaultValue = "")] [StringValidator()] public string Password { get { return (string)base[_propPassword]; } set { base[_propPassword] = value; } } } // class FormsAuthenticationUser } // 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; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationUser : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propName = new ConfigurationProperty("name", typeof(string), "", new LowerCaseStringConverter(), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propPassword = new ConfigurationProperty("password", typeof(string), "", ConfigurationPropertyOptions.IsRequired); static FormsAuthenticationUser() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propName); _properties.Add(_propPassword); } internal FormsAuthenticationUser() { } public FormsAuthenticationUser(String name, String password) : this() { Name = name.ToLower(CultureInfo.InvariantCulture); Password = password; } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "")] [TypeConverter(typeof(LowerCaseStringConverter))] [StringValidator()] public string Name { get { return (string)base[_propName]; } set { base[_propName] = value; } } [ConfigurationProperty("password", IsRequired = true, DefaultValue = "")] [StringValidator()] public string Password { get { return (string)base[_propPassword]; } set { base[_propPassword] = value; } } } // class FormsAuthenticationUser } // 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
- PrintDialogException.cs
- CmsUtils.cs
- InternalResources.cs
- ContainerParagraph.cs
- Win32.cs
- ButtonColumn.cs
- DeploymentExceptionMapper.cs
- SimpleBitVector32.cs
- TypeDependencyAttribute.cs
- BinaryConverter.cs
- Vector.cs
- RectValueSerializer.cs
- DefaultWorkflowLoaderService.cs
- HitTestResult.cs
- SignatureGenerator.cs
- IgnoreFileBuildProvider.cs
- DocumentCollection.cs
- CoTaskMemHandle.cs
- LocalizedNameDescriptionPair.cs
- BaseTemplateBuildProvider.cs
- WindowsButton.cs
- InitializerFacet.cs
- X509CertificateTokenFactoryCredential.cs
- DmlSqlGenerator.cs
- OleTxTransaction.cs
- TdsParserSessionPool.cs
- ListViewUpdateEventArgs.cs
- Accessors.cs
- InputLanguageManager.cs
- CompModSwitches.cs
- TraceSection.cs
- ListViewItemMouseHoverEvent.cs
- NavigationService.cs
- SqlCacheDependency.cs
- Constant.cs
- GridViewColumnHeaderAutomationPeer.cs
- GridViewDeleteEventArgs.cs
- DeviceSpecificDesigner.cs
- AttributeSetAction.cs
- AutomationPatternInfo.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DesignerRegionCollection.cs
- SSmlParser.cs
- DataFormats.cs
- XPathAncestorQuery.cs
- Point4D.cs
- FunctionParameter.cs
- ComponentConverter.cs
- ipaddressinformationcollection.cs
- SchemaElementDecl.cs
- UrlMappingCollection.cs
- FileClassifier.cs
- XmlSchemaNotation.cs
- ManifestResourceInfo.cs
- RequestCacheEntry.cs
- Button.cs
- RenderingBiasValidation.cs
- Transform3DCollection.cs
- ScalarOps.cs
- DetailsViewModeEventArgs.cs
- StatusBarPanelClickEvent.cs
- XamlDesignerSerializationManager.cs
- DefaultWorkflowLoaderService.cs
- RightNameExpirationInfoPair.cs
- ReadOnlyCollection.cs
- mediaeventshelper.cs
- ComboBoxRenderer.cs
- PipelineDeploymentState.cs
- WindowsHyperlink.cs
- OracleTransaction.cs
- FixedSOMImage.cs
- _HeaderInfo.cs
- Focus.cs
- LoadedEvent.cs
- Socket.cs
- TextTreeInsertUndoUnit.cs
- XmlSignatureProperties.cs
- Debug.cs
- SrgsDocument.cs
- PasswordRecovery.cs
- LongValidatorAttribute.cs
- PointConverter.cs
- PageClientProxyGenerator.cs
- ActivityXRefConverter.cs
- AutomationTextAttribute.cs
- XmlDocumentFragment.cs
- CodeGotoStatement.cs
- Int16Storage.cs
- IsolatedStorageFileStream.cs
- ContactManager.cs
- ContainerUIElement3D.cs
- Canvas.cs
- DataColumnPropertyDescriptor.cs
- LocalizationParserHooks.cs
- DataRelationCollection.cs
- ThreadAbortException.cs
- XmlSchemaComplexContentRestriction.cs
- MailSettingsSection.cs
- HtmlTableRow.cs
- GeometryValueSerializer.cs