Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationUser.cs / 1305376 / 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; 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JsonUriDataContract.cs
- StateBag.cs
- CodeCatchClause.cs
- SecurityKeyType.cs
- WmlControlAdapter.cs
- HttpStreamXmlDictionaryWriter.cs
- ListBoxItemAutomationPeer.cs
- SQLSingleStorage.cs
- PreloadedPackages.cs
- XmlDataImplementation.cs
- ConfigXmlText.cs
- EnumConverter.cs
- DocumentEventArgs.cs
- ServiceModelConfiguration.cs
- SystemIPv4InterfaceProperties.cs
- DataGridViewCheckBoxCell.cs
- PackWebRequestFactory.cs
- SystemWebCachingSectionGroup.cs
- EntityDataSourceContextDisposingEventArgs.cs
- PageFunction.cs
- ObjectKeyFrameCollection.cs
- ellipse.cs
- SqlSelectClauseBuilder.cs
- ManagementQuery.cs
- DataGridViewTopRowAccessibleObject.cs
- SoapMessage.cs
- SerializationHelper.cs
- DrawingState.cs
- TypeGeneratedEventArgs.cs
- DataServiceConfiguration.cs
- PersianCalendar.cs
- Interlocked.cs
- HostProtectionPermission.cs
- DataGridViewColumnCollectionEditor.cs
- XmlSchemaComplexContentExtension.cs
- DeclarationUpdate.cs
- complextypematerializer.cs
- SHA384.cs
- HandleRef.cs
- TimeSpanConverter.cs
- mediaeventshelper.cs
- XamlTreeBuilder.cs
- PropertyChangingEventArgs.cs
- IRCollection.cs
- CfgParser.cs
- RightNameExpirationInfoPair.cs
- HttpsHostedTransportConfiguration.cs
- MediaTimeline.cs
- HuffmanTree.cs
- LiteralLink.cs
- AutoSizeToolBoxItem.cs
- PerfProviderCollection.cs
- ImageKeyConverter.cs
- DropTarget.cs
- HtmlContainerControl.cs
- EventLogInternal.cs
- WebPartMenuStyle.cs
- AspCompat.cs
- VariantWrapper.cs
- WsatServiceCertificate.cs
- DataGridViewCellCollection.cs
- XmlDigitalSignatureProcessor.cs
- diagnosticsswitches.cs
- DataObjectCopyingEventArgs.cs
- SqlUDTStorage.cs
- Int64Animation.cs
- VirtualizingStackPanel.cs
- TreeNode.cs
- _TLSstream.cs
- EDesignUtil.cs
- SimplePropertyEntry.cs
- CompilerWrapper.cs
- TextSegment.cs
- _StreamFramer.cs
- ServiceThrottlingElement.cs
- SqlUserDefinedAggregateAttribute.cs
- ParameterElementCollection.cs
- RecordManager.cs
- WebPartVerbsEventArgs.cs
- PropertyEntry.cs
- TransactionChannelListener.cs
- InkCanvasInnerCanvas.cs
- WindowsNonControl.cs
- ExpressionBuilderContext.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SettingsBase.cs
- _PooledStream.cs
- MergePropertyDescriptor.cs
- NameValueFileSectionHandler.cs
- HistoryEventArgs.cs
- SiteMap.cs
- ServiceOperation.cs
- HyperLinkColumn.cs
- DPCustomTypeDescriptor.cs
- ContentElementAutomationPeer.cs
- ParallelTimeline.cs
- Resources.Designer.cs
- GeometryHitTestResult.cs
- GlobalizationSection.cs
- ObjectAnimationUsingKeyFrames.cs