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
- ButtonStandardAdapter.cs
- TemplateKeyConverter.cs
- FilteredReadOnlyMetadataCollection.cs
- DetailsViewInsertedEventArgs.cs
- SQLDoubleStorage.cs
- BinaryCommonClasses.cs
- GridProviderWrapper.cs
- contentDescriptor.cs
- SourceItem.cs
- HtmlTable.cs
- GridViewEditEventArgs.cs
- TextEditorContextMenu.cs
- ReadWriteControlDesigner.cs
- DiffuseMaterial.cs
- ServiceDurableInstance.cs
- securestring.cs
- TreeView.cs
- sqlmetadatafactory.cs
- UnicodeEncoding.cs
- BitArray.cs
- Base64Stream.cs
- ConversionValidationRule.cs
- DataGridState.cs
- SmiEventSink_DeferedProcessing.cs
- XmlSchemaCollection.cs
- DataGridViewCellStyle.cs
- VirtualPathProvider.cs
- userdatakeys.cs
- AnnotationResourceChangedEventArgs.cs
- HtmlAnchor.cs
- CounterSample.cs
- arclist.cs
- XmlTextWriter.cs
- ArglessEventHandlerProxy.cs
- UserControl.cs
- DataBindingCollection.cs
- EntityContainerEmitter.cs
- WebHeaderCollection.cs
- InitializeCorrelation.cs
- CreateUserErrorEventArgs.cs
- Sorting.cs
- HtmlWindow.cs
- InvariantComparer.cs
- Panel.cs
- Vector3D.cs
- TreeChangeInfo.cs
- WebConfigurationManager.cs
- GridViewColumnCollection.cs
- TreeViewAutomationPeer.cs
- WebPartPersonalization.cs
- OdbcConnectionOpen.cs
- SmtpDateTime.cs
- OLEDB_Enum.cs
- TreeWalker.cs
- DrawingGroup.cs
- Delegate.cs
- OleDbMetaDataFactory.cs
- StreamResourceInfo.cs
- MessageHeader.cs
- XmlBinaryReader.cs
- StandardOleMarshalObject.cs
- WindowsToolbarItemAsMenuItem.cs
- ToolZone.cs
- PropertyReference.cs
- DateTimeConverter.cs
- StatusBarAutomationPeer.cs
- SettingsBindableAttribute.cs
- SafeEventLogReadHandle.cs
- TimelineClockCollection.cs
- BaseHashHelper.cs
- Material.cs
- RemoteWebConfigurationHostServer.cs
- Item.cs
- Compiler.cs
- TraceContext.cs
- CapabilitiesUse.cs
- CngAlgorithm.cs
- Boolean.cs
- DispatcherFrame.cs
- UpdateException.cs
- DynamicDataResources.Designer.cs
- Dynamic.cs
- Exception.cs
- SymbolPair.cs
- PersonalizablePropertyEntry.cs
- TableStyle.cs
- FloaterParagraph.cs
- TimeSpanOrInfiniteConverter.cs
- TextSelectionProcessor.cs
- ConfigurationPropertyAttribute.cs
- ColumnCollection.cs
- OdbcConnectionString.cs
- AtomMaterializerLog.cs
- SQLDoubleStorage.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ADMembershipUser.cs
- PropertyStore.cs
- IndicShape.cs
- UnsafeNativeMethods.cs
- AccessDataSource.cs