Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BooleanFacetDescriptionElement.cs
- ThreadAttributes.cs
- GeneralTransform3DTo2D.cs
- DataListItem.cs
- ConfigurationLockCollection.cs
- TextTreeRootNode.cs
- ProjectionCamera.cs
- ValidationHelpers.cs
- MenuTracker.cs
- _LocalDataStoreMgr.cs
- AsyncOperationManager.cs
- CodeGenerator.cs
- FrameworkContentElement.cs
- GatewayIPAddressInformationCollection.cs
- ReferencedType.cs
- AuthorizationRule.cs
- ImportContext.cs
- AssemblyAssociatedContentFileAttribute.cs
- GZipDecoder.cs
- Literal.cs
- ScrollItemPatternIdentifiers.cs
- ColumnReorderedEventArgs.cs
- CrossAppDomainChannel.cs
- DataRecordInternal.cs
- wmiprovider.cs
- FileLogRecordEnumerator.cs
- SystemTcpStatistics.cs
- ConfigurationStrings.cs
- RangeValuePattern.cs
- SecurityDocument.cs
- GPPOINT.cs
- SqlDataSourceFilteringEventArgs.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XmlConverter.cs
- util.cs
- BeginStoryboard.cs
- WinInetCache.cs
- UIElementCollection.cs
- EventLogStatus.cs
- Span.cs
- PeerHelpers.cs
- PropertyTabChangedEvent.cs
- StrongNamePublicKeyBlob.cs
- ApplicationGesture.cs
- XsltContext.cs
- ToolStripSeparator.cs
- XmlSortKey.cs
- MachineKeySection.cs
- AuthorizationRuleCollection.cs
- ProjectionCamera.cs
- HistoryEventArgs.cs
- ObservableCollectionDefaultValueFactory.cs
- QuadTree.cs
- WithParamAction.cs
- ContentType.cs
- HyperLinkField.cs
- WeakHashtable.cs
- XmlSchemaCollection.cs
- PasswordTextContainer.cs
- OuterGlowBitmapEffect.cs
- BasicDesignerLoader.cs
- OwnerDrawPropertyBag.cs
- ResXResourceWriter.cs
- QilXmlReader.cs
- Privilege.cs
- DataAdapter.cs
- MsdtcClusterUtils.cs
- ListItemParagraph.cs
- WebPartChrome.cs
- AuthenticatingEventArgs.cs
- util.cs
- AsymmetricKeyExchangeDeformatter.cs
- StructuredTypeEmitter.cs
- EventLogPermissionEntry.cs
- XmlSchemaGroupRef.cs
- ServiceOperationInfoTypeConverter.cs
- mediaclock.cs
- ObjectParameter.cs
- ListBox.cs
- ClientSettingsSection.cs
- TimelineClockCollection.cs
- XmlUtf8RawTextWriter.cs
- CornerRadius.cs
- StringExpressionSet.cs
- TableLayoutStyleCollection.cs
- FrameworkEventSource.cs
- TdsParserStateObject.cs
- CultureNotFoundException.cs
- _FtpDataStream.cs
- NumberFormatInfo.cs
- CrossAppDomainChannel.cs
- XPathNodeList.cs
- HighlightVisual.cs
- VectorCollectionValueSerializer.cs
- SynthesizerStateChangedEventArgs.cs
- XmlBufferedByteStreamReader.cs
- XmlSchemaSimpleContentRestriction.cs
- CalendarDesigner.cs
- CompositeDataBoundControl.cs
- DataViewSetting.cs