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
- ControlLocalizer.cs
- ToolStripPanelDesigner.cs
- sqlinternaltransaction.cs
- DbConnectionPoolGroupProviderInfo.cs
- ClonableStack.cs
- WebFormDesignerActionService.cs
- FontCacheUtil.cs
- XmlConvert.cs
- DesignerAdapterAttribute.cs
- ToolStripLabel.cs
- URIFormatException.cs
- WinInet.cs
- TypeFieldSchema.cs
- SoapRpcServiceAttribute.cs
- BroadcastEventHelper.cs
- ReadContentAsBinaryHelper.cs
- CustomError.cs
- CatalogUtil.cs
- RemoteCryptoRsaServiceProvider.cs
- GetPageCompletedEventArgs.cs
- ValidationError.cs
- ToolBarButtonClickEvent.cs
- InternalPermissions.cs
- SchemaConstraints.cs
- ISCIIEncoding.cs
- Vector3DCollectionConverter.cs
- CursorInteropHelper.cs
- HostedHttpContext.cs
- Identity.cs
- ArcSegment.cs
- MetadataSource.cs
- FastEncoder.cs
- Subtree.cs
- WindowsListViewItem.cs
- SafeNativeMethods.cs
- GridLengthConverter.cs
- ScrollEventArgs.cs
- WebHttpBinding.cs
- SettingsAttributeDictionary.cs
- MethodExecutor.cs
- Parser.cs
- Profiler.cs
- GZipStream.cs
- DocumentViewerHelper.cs
- CheckBox.cs
- MethodSet.cs
- Unit.cs
- CompModHelpers.cs
- BuiltInExpr.cs
- DecoderBestFitFallback.cs
- EncryptedKeyIdentifierClause.cs
- SecurityContextSecurityTokenResolver.cs
- BindingManagerDataErrorEventArgs.cs
- NullExtension.cs
- DirectoryInfo.cs
- ProtocolsConfigurationHandler.cs
- FlowDocument.cs
- WinFormsSecurity.cs
- ChannelParameterCollection.cs
- NoneExcludedImageIndexConverter.cs
- SqlWebEventProvider.cs
- FormViewDeletedEventArgs.cs
- SamlAudienceRestrictionCondition.cs
- safelinkcollection.cs
- XamlFigureLengthSerializer.cs
- StreamGeometry.cs
- CodeTypeMember.cs
- MsdtcClusterUtils.cs
- ToolBar.cs
- GACMembershipCondition.cs
- NetCodeGroup.cs
- DataGridViewCheckBoxColumn.cs
- MessageQueueConverter.cs
- ControlBindingsCollection.cs
- InternalResources.cs
- DetailsView.cs
- ProcessMonitor.cs
- XmlSerializerNamespaces.cs
- SqlTriggerAttribute.cs
- RelationshipFixer.cs
- DocumentViewerConstants.cs
- BStrWrapper.cs
- VirtualizingPanel.cs
- ObjectDataSource.cs
- RichTextBoxConstants.cs
- BitmapEffect.cs
- Point.cs
- HttpConfigurationContext.cs
- IdentityNotMappedException.cs
- PlainXmlDeserializer.cs
- ThreadInterruptedException.cs
- Environment.cs
- AdornerHitTestResult.cs
- TimersDescriptionAttribute.cs
- SettingsProviderCollection.cs
- ReadOnlyAttribute.cs
- HtmlTextArea.cs
- TreeIterator.cs
- ConfigXmlElement.cs
- ChannelPoolSettings.cs