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
- CacheAxisQuery.cs
- MethodBuilderInstantiation.cs
- AddInProcess.cs
- KeyedCollection.cs
- ClientScriptManager.cs
- Psha1DerivedKeyGeneratorHelper.cs
- controlskin.cs
- PartialList.cs
- MultiPageTextView.cs
- ContentFilePart.cs
- PropertyGridEditorPart.cs
- OracleNumber.cs
- XamlTypeWithExplicitNamespace.cs
- ScriptingWebServicesSectionGroup.cs
- Base64Encoder.cs
- PropertyConverter.cs
- XmlChildNodes.cs
- HwndHostAutomationPeer.cs
- HtmlEncodedRawTextWriter.cs
- IisTraceListener.cs
- SqlConnectionHelper.cs
- Command.cs
- IxmlLineInfo.cs
- ResourceAssociationSetEnd.cs
- DataGridViewCellValidatingEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- Int16AnimationBase.cs
- ToolboxComponentsCreatingEventArgs.cs
- PipeSecurity.cs
- SoapObjectReader.cs
- CompensationTokenData.cs
- DataGridTemplateColumn.cs
- TextBoxBase.cs
- SmtpClient.cs
- EventSetterHandlerConverter.cs
- Ipv6Element.cs
- CryptoApi.cs
- ScriptingJsonSerializationSection.cs
- UIElementIsland.cs
- ThreadStateException.cs
- ToolStripControlHost.cs
- SvcMapFileSerializer.cs
- ResourcesGenerator.cs
- AppDomainFactory.cs
- DesignTimeParseData.cs
- WebPartConnectionsDisconnectVerb.cs
- StackOverflowException.cs
- AnnotationResourceChangedEventArgs.cs
- KeyProperty.cs
- DBCSCodePageEncoding.cs
- DataRelationCollection.cs
- ContainerUtilities.cs
- Image.cs
- ListViewInsertedEventArgs.cs
- GridViewRow.cs
- SettingsProviderCollection.cs
- ImageKeyConverter.cs
- _DomainName.cs
- PropertyGridEditorPart.cs
- LinkLabelLinkClickedEvent.cs
- XmlSchemaAttributeGroup.cs
- HwndKeyboardInputProvider.cs
- BinaryObjectInfo.cs
- SpotLight.cs
- CollectionBuilder.cs
- KoreanLunisolarCalendar.cs
- MachineKeyConverter.cs
- RoutedEventConverter.cs
- Size.cs
- FeatureSupport.cs
- WinEventTracker.cs
- ZipPackage.cs
- StatusBar.cs
- BitmapEffectInput.cs
- XNodeNavigator.cs
- DrawingGroup.cs
- RedistVersionInfo.cs
- OrderedDictionaryStateHelper.cs
- ChangeProcessor.cs
- AuthenticationException.cs
- TraversalRequest.cs
- RecognitionResult.cs
- EncodingInfo.cs
- RestClientProxyHandler.cs
- DeflateStream.cs
- HtmlTableRow.cs
- ObjectTag.cs
- NullableDoubleAverageAggregationOperator.cs
- BitmapEffect.cs
- DrawingContextDrawingContextWalker.cs
- ZipPackagePart.cs
- SettingsBindableAttribute.cs
- ServiceBehaviorElement.cs
- CustomAttributeFormatException.cs
- WebZone.cs
- ToolStripItemImageRenderEventArgs.cs
- BmpBitmapDecoder.cs
- CapabilitiesSection.cs
- _RegBlobWebProxyDataBuilder.cs
- ReflectEventDescriptor.cs