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
- MailMessage.cs
- ElementsClipboardData.cs
- Mutex.cs
- ClientConfigurationSystem.cs
- ASCIIEncoding.cs
- DeferredSelectedIndexReference.cs
- ReflectEventDescriptor.cs
- Equal.cs
- PropertyGeneratedEventArgs.cs
- StreamingContext.cs
- AttachedAnnotationChangedEventArgs.cs
- BrushMappingModeValidation.cs
- SqlDataSourceStatusEventArgs.cs
- TextParagraphView.cs
- DebugHandleTracker.cs
- TextDecorationLocationValidation.cs
- VectorKeyFrameCollection.cs
- DependencyObjectPropertyDescriptor.cs
- AssemblyAttributesGoHere.cs
- MeshGeometry3D.cs
- SQLGuid.cs
- CustomErrorsSectionWrapper.cs
- Marshal.cs
- PropertyTabChangedEvent.cs
- odbcmetadatacollectionnames.cs
- __TransparentProxy.cs
- ClipboardData.cs
- PageMediaType.cs
- TextServicesProperty.cs
- BaseProcessor.cs
- SqlDataSourceDesigner.cs
- HMAC.cs
- ChangesetResponse.cs
- GifBitmapDecoder.cs
- DrawingState.cs
- WorkflowInstanceProxy.cs
- XPathQilFactory.cs
- DataExchangeServiceBinder.cs
- DocumentApplicationJournalEntry.cs
- RegexGroup.cs
- MonitorWrapper.cs
- UnsafeMethods.cs
- QueryResult.cs
- ConfigsHelper.cs
- Region.cs
- Compiler.cs
- webclient.cs
- PrintControllerWithStatusDialog.cs
- WebServiceEnumData.cs
- HttpCacheVary.cs
- DataGridPageChangedEventArgs.cs
- PermissionSetTriple.cs
- ToolStripComboBox.cs
- ResourceAssociationType.cs
- ExceptionAggregator.cs
- ConfigurationException.cs
- EncodingInfo.cs
- ADMembershipProvider.cs
- DocumentApplication.cs
- DuplicateWaitObjectException.cs
- WebBrowserUriTypeConverter.cs
- ProgressChangedEventArgs.cs
- StylusCollection.cs
- BevelBitmapEffect.cs
- WhitespaceRuleReader.cs
- StaticFileHandler.cs
- ClientTarget.cs
- MimeTypePropertyAttribute.cs
- EntityDataSourceValidationException.cs
- BitHelper.cs
- NavigatorInput.cs
- _SSPISessionCache.cs
- FlowLayoutPanel.cs
- MonthCalendar.cs
- SystemIcmpV4Statistics.cs
- IntSecurity.cs
- SR.cs
- ConfigurationSectionCollection.cs
- PropertyValueEditor.cs
- PositiveTimeSpanValidatorAttribute.cs
- AsymmetricCryptoHandle.cs
- WbmpConverter.cs
- __ComObject.cs
- DefaultTextStore.cs
- InkPresenterAutomationPeer.cs
- EntityConnection.cs
- DesignTimeHTMLTextWriter.cs
- TdsParserSafeHandles.cs
- ReferentialConstraint.cs
- DataStreamFromComStream.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RuntimeConfigLKG.cs
- VisualTransition.cs
- SqlDataSourceSummaryPanel.cs
- CreateUserWizardStep.cs
- ToolStripPanelDesigner.cs
- _FtpControlStream.cs
- SchemaImporterExtensionElement.cs
- XamlTypeMapperSchemaContext.cs
- AddIn.cs