Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationUser.cs / 1305376 / 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; 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; 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
- InlineUIContainer.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ImagingCache.cs
- MessageBox.cs
- ManualResetEvent.cs
- StyleSheetDesigner.cs
- DataControlImageButton.cs
- Assert.cs
- XsltArgumentList.cs
- EntitySetDataBindingList.cs
- XmlSchemaDocumentation.cs
- RemoteWebConfigurationHostStream.cs
- RtfToXamlReader.cs
- Dictionary.cs
- BoundColumn.cs
- Splitter.cs
- SqlLiftIndependentRowExpressions.cs
- SplitterDesigner.cs
- ObjectQueryState.cs
- TemplatedWizardStep.cs
- SpotLight.cs
- MultilineStringEditor.cs
- HealthMonitoringSection.cs
- Polygon.cs
- ListViewItem.cs
- DesignSurfaceEvent.cs
- DES.cs
- OptimalBreakSession.cs
- ShapingEngine.cs
- TextElement.cs
- PerspectiveCamera.cs
- ConfigurationConverterBase.cs
- ProcessHostServerConfig.cs
- LassoSelectionBehavior.cs
- PassportAuthentication.cs
- NameObjectCollectionBase.cs
- SecurityBindingElementImporter.cs
- HttpException.cs
- StylusDevice.cs
- Exceptions.cs
- TransformCollection.cs
- DataServiceRequestException.cs
- SystemIPInterfaceStatistics.cs
- XmlILConstructAnalyzer.cs
- WorkflowRequestContext.cs
- CombinedGeometry.cs
- GeneralTransformGroup.cs
- WinFormsSpinner.cs
- HyperLink.cs
- CodePropertyReferenceExpression.cs
- EdmTypeAttribute.cs
- DialogResultConverter.cs
- ComAdminWrapper.cs
- SplineKeyFrames.cs
- ToolStripContentPanelRenderEventArgs.cs
- EventLogLink.cs
- ConnectionPointConverter.cs
- TableCell.cs
- XAMLParseException.cs
- Codec.cs
- ExpandoClass.cs
- TextViewSelectionProcessor.cs
- FormDocumentDesigner.cs
- Transform.cs
- DataControlLinkButton.cs
- CustomAttribute.cs
- SmtpAuthenticationManager.cs
- ProcessHostConfigUtils.cs
- PackagePartCollection.cs
- GridViewHeaderRowPresenter.cs
- SqlBuffer.cs
- EditorPartCollection.cs
- XPathConvert.cs
- BindValidator.cs
- EndpointNameMessageFilter.cs
- CursorEditor.cs
- DiscoveryDocumentReference.cs
- PreDigestedSignedInfo.cs
- InputLanguageSource.cs
- NumericExpr.cs
- PnrpPermission.cs
- GuidTagList.cs
- DragEvent.cs
- SourceFilter.cs
- TemplateComponentConnector.cs
- TargetConverter.cs
- WsatTransactionInfo.cs
- ArrayList.cs
- RepeaterCommandEventArgs.cs
- StronglyTypedResourceBuilder.cs
- XPathAncestorQuery.cs
- ActivationServices.cs
- StorageBasedPackageProperties.cs
- InfoCardRSACryptoProvider.cs
- SelectedPathEditor.cs
- DetailsViewPagerRow.cs
- TypeSystem.cs
- SafeNativeMethods.cs
- login.cs
- PartialTrustVisibleAssembly.cs