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
- MD5.cs
- KnownTypeHelper.cs
- TypeCollectionPropertyEditor.cs
- CodeGen.cs
- WizardDesigner.cs
- ParagraphResult.cs
- DesignRelation.cs
- ChtmlTextWriter.cs
- SByteConverter.cs
- ContextMenuStripGroup.cs
- _FtpDataStream.cs
- OrCondition.cs
- ScriptServiceAttribute.cs
- RadioButtonRenderer.cs
- LayoutEditorPart.cs
- HttpCookiesSection.cs
- CfgRule.cs
- FormsAuthenticationUser.cs
- HwndSourceKeyboardInputSite.cs
- FunctionImportMapping.cs
- HashFinalRequest.cs
- Constraint.cs
- NamedObject.cs
- MD5CryptoServiceProvider.cs
- Attributes.cs
- PrimitiveType.cs
- InstalledFontCollection.cs
- Object.cs
- Menu.cs
- ThemeDirectoryCompiler.cs
- WebSysDescriptionAttribute.cs
- SignedInfo.cs
- RandomNumberGenerator.cs
- Camera.cs
- CalendarModeChangedEventArgs.cs
- columnmapfactory.cs
- ServiceParser.cs
- ReceiveReply.cs
- PointAnimationUsingKeyFrames.cs
- FieldAccessException.cs
- DigestTraceRecordHelper.cs
- DirectoryNotFoundException.cs
- MatrixKeyFrameCollection.cs
- codemethodreferenceexpression.cs
- FormView.cs
- SystemIPv6InterfaceProperties.cs
- BookmarkEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- MimePart.cs
- XmlSchemaImport.cs
- XmlSchemaDatatype.cs
- StartUpEventArgs.cs
- PixelFormats.cs
- Color.cs
- FontDifferentiator.cs
- ProcessThread.cs
- InstanceHandle.cs
- storagemappingitemcollection.viewdictionary.cs
- HwndSubclass.cs
- ViewEvent.cs
- Drawing.cs
- PropagatorResult.cs
- Process.cs
- EntityConnectionStringBuilder.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XmlWrappingWriter.cs
- HttpApplicationFactory.cs
- HttpPostedFileWrapper.cs
- ThreadInterruptedException.cs
- CircleHotSpot.cs
- DataServiceQueryOfT.cs
- DesignerTextViewAdapter.cs
- SmtpAuthenticationManager.cs
- DataGridViewButtonColumn.cs
- EntityContainerRelationshipSet.cs
- CacheSection.cs
- XmlILStorageConverter.cs
- EntityDataReader.cs
- SubMenuStyleCollectionEditor.cs
- DetailsView.cs
- XmlSchemaAppInfo.cs
- RelationshipDetailsRow.cs
- SpecialFolderEnumConverter.cs
- ContextCorrelationInitializer.cs
- ToolStripDropDownClosingEventArgs.cs
- Point3D.cs
- ViewManager.cs
- GenerateHelper.cs
- OracleString.cs
- MarshalDirectiveException.cs
- EncodingDataItem.cs
- UInt64Converter.cs
- HttpRuntime.cs
- PeerEndPoint.cs
- DependencyObjectPropertyDescriptor.cs
- TextRunProperties.cs
- ExtensionQuery.cs
- SoapTypeAttribute.cs
- ContentPlaceHolder.cs
- DeflateStreamAsyncResult.cs