Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsListView.cs
- ThreadPool.cs
- DescendantBaseQuery.cs
- EncodingTable.cs
- SHA384.cs
- XmlReaderSettings.cs
- UrlMappingCollection.cs
- ProcessManager.cs
- TypeDescriptionProvider.cs
- Int16Storage.cs
- LinkUtilities.cs
- XappLauncher.cs
- AssemblySettingAttributes.cs
- ISFClipboardData.cs
- PreviewKeyDownEventArgs.cs
- CompositeControl.cs
- Converter.cs
- ASCIIEncoding.cs
- ProjectionCamera.cs
- XmlMapping.cs
- HebrewCalendar.cs
- EnvironmentPermission.cs
- CryptoStream.cs
- CodeArrayIndexerExpression.cs
- OdbcEnvironment.cs
- RestHandlerFactory.cs
- NonNullItemCollection.cs
- TypeForwardedToAttribute.cs
- EmptyControlCollection.cs
- LoopExpression.cs
- VirtualPathData.cs
- SelectorAutomationPeer.cs
- DbProviderFactories.cs
- ControlParameter.cs
- RecommendedAsConfigurableAttribute.cs
- KnownTypes.cs
- XhtmlBasicCalendarAdapter.cs
- HtmlElement.cs
- SByteStorage.cs
- RowToFieldTransformer.cs
- QilXmlReader.cs
- Listbox.cs
- GifBitmapEncoder.cs
- AnimationException.cs
- LockedActivityGlyph.cs
- LabelEditEvent.cs
- KnownBoxes.cs
- MenuItemBindingCollection.cs
- SecurityCredentialsManager.cs
- ClientUIRequest.cs
- DesignerView.xaml.cs
- XamlWrapperReaders.cs
- HtmlImage.cs
- BufferedWebEventProvider.cs
- CheckPair.cs
- MappingException.cs
- log.cs
- XmlExtensionFunction.cs
- PrintDialogDesigner.cs
- DelegateArgumentValue.cs
- LongTypeConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- VScrollProperties.cs
- XmlQueryRuntime.cs
- WebPartConnectionsDisconnectVerb.cs
- SafeProcessHandle.cs
- EventLogLink.cs
- TextTreeExtractElementUndoUnit.cs
- URIFormatException.cs
- WindowsContainer.cs
- DirectoryGroupQuery.cs
- PersonalizablePropertyEntry.cs
- WebBaseEventKeyComparer.cs
- XPathEmptyIterator.cs
- ResXResourceWriter.cs
- XmlParserContext.cs
- ModelItemKeyValuePair.cs
- SqlInfoMessageEvent.cs
- InertiaTranslationBehavior.cs
- ScriptServiceAttribute.cs
- DoubleLinkList.cs
- SafeRightsManagementEnvironmentHandle.cs
- VideoDrawing.cs
- ErrorRuntimeConfig.cs
- FileLogRecord.cs
- DataProtection.cs
- SiteMapProvider.cs
- UDPClient.cs
- TreeNodeClickEventArgs.cs
- KnownTypesHelper.cs
- InputMethod.cs
- TreeView.cs
- ServicesUtilities.cs
- SafeNativeMethodsOther.cs
- RectangleGeometry.cs
- TemplateControl.cs
- NotifyIcon.cs
- ProxyWebPartConnectionCollection.cs
- Effect.cs
- ResourceDisplayNameAttribute.cs