Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ // // 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
- SourceFileInfo.cs
- APCustomTypeDescriptor.cs
- TextServicesProperty.cs
- X509UI.cs
- TraceListener.cs
- FileDialogCustomPlace.cs
- UmAlQuraCalendar.cs
- PathFigureCollection.cs
- RbTree.cs
- glyphs.cs
- ThumbAutomationPeer.cs
- DataGridTablesFactory.cs
- Pointer.cs
- NumericPagerField.cs
- TransportDefaults.cs
- EarlyBoundInfo.cs
- SuppressIldasmAttribute.cs
- DiscoveryMessageSequenceGenerator.cs
- DataGridCellClipboardEventArgs.cs
- DispatchChannelSink.cs
- documentation.cs
- figurelengthconverter.cs
- Win32Native.cs
- PriorityItem.cs
- CardSpacePolicyElement.cs
- HtmlInputHidden.cs
- XMLDiffLoader.cs
- ColorConvertedBitmap.cs
- SizeConverter.cs
- SimpleApplicationHost.cs
- DbDataAdapter.cs
- NetworkInformationPermission.cs
- PortCache.cs
- RelatedImageListAttribute.cs
- ReadContentAsBinaryHelper.cs
- SqlBulkCopy.cs
- PageThemeBuildProvider.cs
- ControlPropertyNameConverter.cs
- SchemaManager.cs
- TemplateControlBuildProvider.cs
- FileDialogCustomPlacesCollection.cs
- DataDocumentXPathNavigator.cs
- XmlAttributeOverrides.cs
- XmlMapping.cs
- HttpServerUtilityWrapper.cs
- Positioning.cs
- ButtonColumn.cs
- TypeDescriptionProvider.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DbgCompiler.cs
- _CookieModule.cs
- NeutralResourcesLanguageAttribute.cs
- SHA1Managed.cs
- future.cs
- dataprotectionpermission.cs
- BasicCommandTreeVisitor.cs
- DeploymentSectionCache.cs
- FaultCallbackWrapper.cs
- StrongNameIdentityPermission.cs
- OciEnlistContext.cs
- OdbcRowUpdatingEvent.cs
- RadioButtonRenderer.cs
- WebServiceMethodData.cs
- RTLAwareMessageBox.cs
- SystemIPInterfaceStatistics.cs
- StdValidatorsAndConverters.cs
- TextReader.cs
- CatalogZoneDesigner.cs
- MappedMetaModel.cs
- DataGridViewColumnHeaderCell.cs
- xml.cs
- SoapMessage.cs
- EmbeddedMailObject.cs
- XamlReaderHelper.cs
- DocumentGridPage.cs
- XmlWrappingWriter.cs
- DataObjectMethodAttribute.cs
- DataView.cs
- SafeNativeMethodsOther.cs
- StreamGeometryContext.cs
- Int64KeyFrameCollection.cs
- NativeMethods.cs
- Visual.cs
- BindableTemplateBuilder.cs
- VBIdentifierName.cs
- ObjectDataSourceMethodEventArgs.cs
- Baml2006Reader.cs
- ExtensibleSyndicationObject.cs
- ContainerFilterService.cs
- LineServicesRun.cs
- DetailsViewModeEventArgs.cs
- DbParameterCollectionHelper.cs
- ServiceOperationListItem.cs
- MarkupCompilePass1.cs
- BindingExpressionUncommonField.cs
- DeclarativeCatalogPart.cs
- LinqDataView.cs
- CultureSpecificCharacterBufferRange.cs
- TextBlockAutomationPeer.cs
- HttpRawResponse.cs