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
- ListView.cs
- _LazyAsyncResult.cs
- PersonalizationProviderCollection.cs
- ImageCodecInfo.cs
- ChildDocumentBlock.cs
- AsymmetricAlgorithm.cs
- MessageBox.cs
- EventMap.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- QilInvokeLateBound.cs
- GenericAuthenticationEventArgs.cs
- ComponentTray.cs
- HighlightVisual.cs
- EventData.cs
- NameValueConfigurationElement.cs
- SqlNotificationEventArgs.cs
- CodeSnippetStatement.cs
- LicenseException.cs
- UniqueIdentifierService.cs
- DetailsViewInsertedEventArgs.cs
- TextFormatterImp.cs
- DataSourceCache.cs
- MultiPropertyDescriptorGridEntry.cs
- NamedPipeTransportSecurityElement.cs
- SoapSchemaImporter.cs
- ThaiBuddhistCalendar.cs
- HierarchicalDataTemplate.cs
- ConstructorExpr.cs
- KeyToListMap.cs
- TextSimpleMarkerProperties.cs
- DataTableNewRowEvent.cs
- ResourceDescriptionAttribute.cs
- ArrayConverter.cs
- BinaryFormatterWriter.cs
- WizardPanel.cs
- HtmlMeta.cs
- shaper.cs
- BitmapMetadataBlob.cs
- InitializerFacet.cs
- ConditionalAttribute.cs
- SerializationObjectManager.cs
- SqlMethods.cs
- BamlBinaryWriter.cs
- MethodSignatureGenerator.cs
- NodeFunctions.cs
- ShaderEffect.cs
- OutgoingWebRequestContext.cs
- SqlBulkCopyColumnMapping.cs
- NameScope.cs
- ContourSegment.cs
- PersonalizationStateInfo.cs
- FixedTextView.cs
- DbProviderManifest.cs
- _NegoState.cs
- Material.cs
- ValidatingCollection.cs
- HttpConfigurationContext.cs
- NameTable.cs
- AuthorizationSection.cs
- OutputCacheProfile.cs
- RuleEngine.cs
- SamlAssertionKeyIdentifierClause.cs
- HttpVersion.cs
- WebResourceAttribute.cs
- XPathConvert.cs
- CodeGenerator.cs
- AlternateViewCollection.cs
- infer.cs
- Executor.cs
- SqlCommandAsyncResult.cs
- XamlSerializerUtil.cs
- CodeDomDesignerLoader.cs
- _ListenerRequestStream.cs
- UncommonField.cs
- EventData.cs
- TraceInternal.cs
- Merger.cs
- LocalizationParserHooks.cs
- PropertyKey.cs
- GeometryCollection.cs
- Comparer.cs
- TreeViewBindingsEditor.cs
- UnsafeNativeMethods.cs
- DbConnectionPoolIdentity.cs
- Visual3DCollection.cs
- XmlDocumentSchema.cs
- WebServiceData.cs
- ProviderCommandInfoUtils.cs
- EdmSchemaAttribute.cs
- ElementMarkupObject.cs
- StorageSetMapping.cs
- BuildManager.cs
- TimerExtension.cs
- SelectionList.cs
- Constraint.cs
- Int64KeyFrameCollection.cs
- path.cs
- SQLByteStorage.cs
- SizeAnimationUsingKeyFrames.cs
- EdmValidator.cs