FormsAuthenticationUser Class
Configures user credentials for Web applications that use Forms authentication.
Syntax
class FormsAuthenticationUser : CollectionElement
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the FormsAuthenticationUser
class.
Name | Description |
---|---|
Name |
A read-only string value that contains the logon user name that is required by the Web application. The key property. |
Password |
A read/write string value that specifies the user password that is required by the Web application. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the Credentials
property of the FormsAuthenticationCredentials class.
A FormsAuthenticationUser
object can write information into the related section of the configuration file at computer, site, or application level only. Any attempt to write in a configuration file at a different level in the hierarchy will result in a parser-generated error message. However, you can use this class to read configuration information at any level in the hierarchy. For safety and scalability, you should use an external repository, such as a database, to keep user credentials.
Inheritance Hierarchy
FormsAuthenticationUser
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
AnonymousAuthenticationSection Class
AuthenticationSection Class
BasicAuthenticationSection Class
ClientCertificateMappingAuthenticationSection Class
CollectionElement Class
DigestAuthenticationSection Class
FormsAuthenticationConfiguration Class
FormsAuthenticationCredentials Class
IisClientCertificateMappingAuthenticationSection Class
PassportAuthentication Class
WindowsAuthenticationSection Class