Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationUser.cs / 1 / 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. // //----------------------------------------------------------------------------- /***************************************************************************** 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Semaphore.cs
- WebControlsSection.cs
- MemberJoinTreeNode.cs
- AuthenticationSection.cs
- TransformProviderWrapper.cs
- HijriCalendar.cs
- AccessedThroughPropertyAttribute.cs
- SafeEventLogWriteHandle.cs
- EncodingTable.cs
- CodeAccessPermission.cs
- PageCodeDomTreeGenerator.cs
- ButtonChrome.cs
- BinaryWriter.cs
- AppSettingsExpressionBuilder.cs
- BitmapDecoder.cs
- MemberPath.cs
- AssemblyName.cs
- PrimitiveSchema.cs
- MethodImplAttribute.cs
- XmlQueryOutput.cs
- WinFormsUtils.cs
- AdjustableArrowCap.cs
- WebSysDefaultValueAttribute.cs
- UnmanagedMarshal.cs
- TextParentUndoUnit.cs
- SchemaObjectWriter.cs
- NameValuePair.cs
- GPStream.cs
- TreeView.cs
- CodeSnippetCompileUnit.cs
- OrderPreservingSpoolingTask.cs
- filewebresponse.cs
- ObjectCache.cs
- TextServicesCompartment.cs
- XamlToRtfWriter.cs
- FlowDocumentView.cs
- WindowsFormsDesignerOptionService.cs
- SourceFileBuildProvider.cs
- CellParagraph.cs
- RouteItem.cs
- BinaryConverter.cs
- StringValueConverter.cs
- GenericIdentity.cs
- DataPointer.cs
- DataListItemCollection.cs
- Argument.cs
- StaticContext.cs
- NodeCounter.cs
- ObjectItemCollection.cs
- TableItemPatternIdentifiers.cs
- RuntimeResourceSet.cs
- ProxyWebPartConnectionCollection.cs
- DtrList.cs
- SqlInternalConnection.cs
- WebPartEditVerb.cs
- Decoder.cs
- DataControlPagerLinkButton.cs
- ControlPropertyNameConverter.cs
- DateTimeParse.cs
- documentsequencetextview.cs
- ValidationError.cs
- Control.cs
- ContextStack.cs
- MobileContainerDesigner.cs
- XmlMembersMapping.cs
- CustomAttributeSerializer.cs
- DependencyProperty.cs
- SqlNotificationEventArgs.cs
- BamlTreeMap.cs
- linebase.cs
- CorrelationRequestContext.cs
- Single.cs
- XmlILOptimizerVisitor.cs
- TreeNodeSelectionProcessor.cs
- SchemaExporter.cs
- ImmutableObjectAttribute.cs
- TraceContext.cs
- HighlightComponent.cs
- EncoderExceptionFallback.cs
- ByteKeyFrameCollection.cs
- SqlClientWrapperSmiStream.cs
- RadioButtonBaseAdapter.cs
- ImageAutomationPeer.cs
- XmlSchemaComplexContent.cs
- ConfigurationStrings.cs
- SqlFlattener.cs
- MimePart.cs
- SafePipeHandle.cs
- Point3DKeyFrameCollection.cs
- XmlImplementation.cs
- DataGridTextBoxColumn.cs
- XmlSchemaRedefine.cs
- LoadRetryConstantStrategy.cs
- DataKey.cs
- XPathNodeList.cs
- RestHandler.cs
- PointHitTestParameters.cs
- UInt64Storage.cs
- XmlCharType.cs
- complextypematerializer.cs