Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontStyleConverter.cs
- CodeBlockBuilder.cs
- BooleanKeyFrameCollection.cs
- WindowsFormsSectionHandler.cs
- SrgsSemanticInterpretationTag.cs
- GrammarBuilderRuleRef.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HebrewNumber.cs
- TreeView.cs
- SqlServices.cs
- FixedTextSelectionProcessor.cs
- CodeDirectoryCompiler.cs
- EntityReference.cs
- CommandBinding.cs
- HotSpotCollectionEditor.cs
- ViewRendering.cs
- SizeChangedInfo.cs
- SystemIPInterfaceProperties.cs
- DnsPermission.cs
- BypassElementCollection.cs
- ReadOnlyObservableCollection.cs
- XpsImageSerializationService.cs
- IndexedGlyphRun.cs
- PrimaryKeyTypeConverter.cs
- EncodingNLS.cs
- SinglePhaseEnlistment.cs
- Queue.cs
- NotImplementedException.cs
- ObjectDataSourceSelectingEventArgs.cs
- StaticContext.cs
- Light.cs
- DropShadowBitmapEffect.cs
- ValueUtilsSmi.cs
- TableRowGroup.cs
- RewritingPass.cs
- SplashScreen.cs
- DownloadProgressEventArgs.cs
- Deserializer.cs
- CompressStream.cs
- TableAdapterManagerNameHandler.cs
- DesignerActionItemCollection.cs
- RegistryExceptionHelper.cs
- BamlTreeNode.cs
- SQLStringStorage.cs
- TemplateBuilder.cs
- TemplatedWizardStep.cs
- CollectionBase.cs
- DataControlReference.cs
- Error.cs
- WebPartRestoreVerb.cs
- XmlObjectSerializer.cs
- CheckBox.cs
- SqlDataSourceCache.cs
- OutputCache.cs
- LinkLabel.cs
- StrongName.cs
- NodeLabelEditEvent.cs
- ComplexBindingPropertiesAttribute.cs
- OleDbErrorCollection.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- FrameworkContentElement.cs
- Trace.cs
- XmlDocumentSurrogate.cs
- SettingsProperty.cs
- StylusPointProperty.cs
- StructuralType.cs
- DatePickerTextBox.cs
- SelectorItemAutomationPeer.cs
- Parsers.cs
- DetailsViewInsertedEventArgs.cs
- CqlLexerHelpers.cs
- BitmapInitialize.cs
- KeyManager.cs
- SpecialTypeDataContract.cs
- _AutoWebProxyScriptWrapper.cs
- DescendentsWalker.cs
- SecurityAttributeGenerationHelper.cs
- PenThreadPool.cs
- WsdlBuildProvider.cs
- UserPreferenceChangedEventArgs.cs
- Label.cs
- PromptEventArgs.cs
- ToolStripSeparator.cs
- ArraySet.cs
- NodeInfo.cs
- FrameworkReadOnlyPropertyMetadata.cs
- HtmlTextBoxAdapter.cs
- StaticFileHandler.cs
- _ConnectOverlappedAsyncResult.cs
- StylusButtonEventArgs.cs
- DataTrigger.cs
- DataSourceCache.cs
- CharacterString.cs
- CustomValidator.cs
- WizardPanelChangingEventArgs.cs
- ZipIOExtraFieldZip64Element.cs
- ForwardPositionQuery.cs
- CollectionViewGroupRoot.cs
- LongPath.cs
- UrlAuthorizationModule.cs