Code:
/ DotNET / DotNET / 8.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
- DataServiceClientException.cs
- RenderOptions.cs
- AppDomainEvidenceFactory.cs
- SchemaNamespaceManager.cs
- SimpleWorkerRequest.cs
- AudioFormatConverter.cs
- PasswordBoxAutomationPeer.cs
- TimestampInformation.cs
- DesignerRegion.cs
- DbReferenceCollection.cs
- StatusBarPanel.cs
- XmlSchemaSimpleContentRestriction.cs
- EnglishPluralizationService.cs
- IntegerValidator.cs
- SHA512Managed.cs
- WebEventCodes.cs
- TextElementEnumerator.cs
- TimeoutException.cs
- BamlResourceSerializer.cs
- AutomationPropertyInfo.cs
- OutputCacheModule.cs
- LinqDataSourceStatusEventArgs.cs
- SQLInt64.cs
- KerberosReceiverSecurityToken.cs
- ProfileService.cs
- BooleanAnimationUsingKeyFrames.cs
- EventInfo.cs
- _SslSessionsCache.cs
- IList.cs
- HttpBindingExtension.cs
- CodeTypeMember.cs
- codemethodreferenceexpression.cs
- ExpressionContext.cs
- While.cs
- OpenTypeLayoutCache.cs
- ScopedKnownTypes.cs
- sapiproxy.cs
- ErrorInfoXmlDocument.cs
- ResXResourceWriter.cs
- TcpWorkerProcess.cs
- RepeaterCommandEventArgs.cs
- PropertyValueChangedEvent.cs
- PublishLicense.cs
- PropertyGroupDescription.cs
- SpeechRecognitionEngine.cs
- AutomationElement.cs
- XAMLParseException.cs
- DebugView.cs
- ProvidePropertyAttribute.cs
- ActionItem.cs
- KoreanCalendar.cs
- XmlWriterSettings.cs
- SQlBooleanStorage.cs
- BitmapEffectOutputConnector.cs
- Misc.cs
- TargetParameterCountException.cs
- AddInDeploymentState.cs
- WorkflowOperationInvoker.cs
- Int32KeyFrameCollection.cs
- DataBindingHandlerAttribute.cs
- GB18030Encoding.cs
- DynamicResourceExtensionConverter.cs
- SecurityTokenContainer.cs
- PeerEndPoint.cs
- ListViewInsertEventArgs.cs
- ConfigurationManagerInternalFactory.cs
- SweepDirectionValidation.cs
- FaultHandlingFilter.cs
- SchemaInfo.cs
- ZipIOLocalFileBlock.cs
- HostProtectionPermission.cs
- dbdatarecord.cs
- ScriptManager.cs
- DataGrid.cs
- CheckPair.cs
- DragDeltaEventArgs.cs
- InkCanvasInnerCanvas.cs
- RoleManagerSection.cs
- MatrixTransform3D.cs
- SerializationFieldInfo.cs
- TemplateControlParser.cs
- ComplexLine.cs
- LinqDataSourceStatusEventArgs.cs
- WebMessageFormatHelper.cs
- DataRelationCollection.cs
- HtmlShimManager.cs
- WindowsTokenRoleProvider.cs
- Tuple.cs
- MimeReflector.cs
- Effect.cs
- WizardStepBase.cs
- DataTrigger.cs
- InlineUIContainer.cs
- EdmScalarPropertyAttribute.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- NameScope.cs
- UniqueIdentifierService.cs
- ZipIOLocalFileBlock.cs
- SortDescription.cs
- ExtendedPropertyDescriptor.cs