Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MulticastIPAddressInformationCollection.cs
- SkipQueryOptionExpression.cs
- QilList.cs
- TextServicesDisplayAttribute.cs
- HttpProcessUtility.cs
- WebPartMinimizeVerb.cs
- StrongNameMembershipCondition.cs
- MenuCommandsChangedEventArgs.cs
- FixedSOMFixedBlock.cs
- KeyboardNavigation.cs
- WindowsFormsEditorServiceHelper.cs
- XmlSchemaSimpleContentExtension.cs
- ServiceContractGenerator.cs
- FlowDocumentPageViewerAutomationPeer.cs
- IsolatedStorage.cs
- RecordsAffectedEventArgs.cs
- CorrelationResolver.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MimeMultiPart.cs
- SelectionEditingBehavior.cs
- CompilerCollection.cs
- ProvidersHelper.cs
- LayoutEvent.cs
- ITreeGenerator.cs
- BridgeDataRecord.cs
- SchemaMapping.cs
- _HelperAsyncResults.cs
- CompositeActivityValidator.cs
- IPipelineRuntime.cs
- InputLanguage.cs
- XamlContextStack.cs
- LiteralTextContainerControlBuilder.cs
- IdnElement.cs
- RegexCompiler.cs
- Thread.cs
- XmlNamedNodeMap.cs
- Exceptions.cs
- Type.cs
- DataGridBoolColumn.cs
- MatrixTransform3D.cs
- UserPersonalizationStateInfo.cs
- WindowsFormsHostAutomationPeer.cs
- Avt.cs
- ProfileService.cs
- ImageListStreamer.cs
- ProxyAssemblyNotLoadedException.cs
- FrameworkTemplate.cs
- OleDbEnumerator.cs
- Clipboard.cs
- ToolStripSeparator.cs
- TimelineCollection.cs
- MachineKeyConverter.cs
- DataSourceCollectionBase.cs
- WebBrowserEvent.cs
- IndependentAnimationStorage.cs
- PolicyUnit.cs
- Automation.cs
- arc.cs
- SymbolEqualComparer.cs
- KeyValuePair.cs
- TextFormatterHost.cs
- BamlRecordReader.cs
- HttpListenerPrefixCollection.cs
- MimeFormImporter.cs
- EventLogPermissionEntry.cs
- ImmutablePropertyDescriptorGridEntry.cs
- EnumUnknown.cs
- COM2EnumConverter.cs
- TraceXPathNavigator.cs
- DetailsViewPageEventArgs.cs
- TypeUtils.cs
- EntityDataSourceContainerNameItem.cs
- AccessedThroughPropertyAttribute.cs
- MimeWriter.cs
- ExportOptions.cs
- CounterSample.cs
- WebBrowserNavigatedEventHandler.cs
- AssociativeAggregationOperator.cs
- InstancePersistenceContext.cs
- GenericRootAutomationPeer.cs
- assertwrapper.cs
- SmiContext.cs
- CodeAttributeDeclaration.cs
- DictionaryEntry.cs
- DataSet.cs
- FrameworkTemplate.cs
- ELinqQueryState.cs
- CharEnumerator.cs
- DatePickerAutomationPeer.cs
- InvokerUtil.cs
- ScrollBar.cs
- RandomNumberGenerator.cs
- DiscoveryDocumentLinksPattern.cs
- BindingOperations.cs
- StringAnimationBase.cs
- TextRangeEdit.cs
- ConfigurationLocation.cs
- ClientUriBehavior.cs
- TraceLevelHelper.cs
- CursorInteropHelper.cs