Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationUser.cs / 2 / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocumentPaginator.cs
- CallbackHandler.cs
- GACMembershipCondition.cs
- UpdatePanelTrigger.cs
- AssemblyBuilder.cs
- VectorConverter.cs
- IndentTextWriter.cs
- CharConverter.cs
- Binding.cs
- CompositionDesigner.cs
- VirtualPath.cs
- BitmapEffectGroup.cs
- MarshalByValueComponent.cs
- ErrorTableItemStyle.cs
- KeyConverter.cs
- TraceLog.cs
- Pick.cs
- EventLogTraceListener.cs
- NetCodeGroup.cs
- ToolStripLabel.cs
- XPathParser.cs
- GradientSpreadMethodValidation.cs
- ExtenderControl.cs
- FeatureAttribute.cs
- ListChangedEventArgs.cs
- SweepDirectionValidation.cs
- UnmanagedHandle.cs
- PointLightBase.cs
- UmAlQuraCalendar.cs
- CurrencyManager.cs
- EndpointAddress.cs
- SpecularMaterial.cs
- TextTreeExtractElementUndoUnit.cs
- WaitForChangedResult.cs
- RsaSecurityKey.cs
- Size3D.cs
- MethodBody.cs
- SqlXml.cs
- FixedBufferAttribute.cs
- ExpressionPrinter.cs
- StrokeCollectionConverter.cs
- AppendHelper.cs
- Exception.cs
- OneToOneMappingSerializer.cs
- ImageList.cs
- SystemInfo.cs
- Int32RectConverter.cs
- SqlDataSourceCache.cs
- FlowLayout.cs
- httpapplicationstate.cs
- ManipulationVelocities.cs
- EntityContainerAssociationSetEnd.cs
- IndexedString.cs
- PersonalizationDictionary.cs
- TextEditorMouse.cs
- _FtpDataStream.cs
- TextSchema.cs
- ContainerUIElement3D.cs
- XmlSchemaGroup.cs
- Int32Converter.cs
- PanelStyle.cs
- DataPager.cs
- MtomMessageEncoder.cs
- RequiredFieldValidator.cs
- Rfc2898DeriveBytes.cs
- BitmapDecoder.cs
- FixedTextView.cs
- AttachmentService.cs
- LocalizationCodeDomSerializer.cs
- StateMachine.cs
- Root.cs
- BinaryMethodMessage.cs
- _Win32.cs
- DependencyPropertyHelper.cs
- OleDbDataReader.cs
- SoapInteropTypes.cs
- Label.cs
- RoamingStoreFileUtility.cs
- ManagementNamedValueCollection.cs
- ProvidePropertyAttribute.cs
- WebPartConnectionsCancelVerb.cs
- ListItem.cs
- ContextStaticAttribute.cs
- Behavior.cs
- ReadOnlyCollectionBuilder.cs
- ProviderUtil.cs
- XmlSchemaRedefine.cs
- DataServiceClientException.cs
- NonParentingControl.cs
- ThreadStateException.cs
- Rect.cs
- EditorBrowsableAttribute.cs
- HttpFileCollection.cs
- ToolStripDropTargetManager.cs
- Bezier.cs
- WinEventQueueItem.cs
- SecurityVerifiedMessage.cs
- GenerateScriptTypeAttribute.cs
- ServerValidateEventArgs.cs
- AssemblyEvidenceFactory.cs