FormsAuthenticationUser Class [IIS 7 and higher]

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

CollectionElement

   FormsAuthenticationUser

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

AnonymousAuthenticationSection Class [IIS 7 and higher]

AuthenticationSection Class [IIS 7 and higher]

BasicAuthenticationSection Class [IIS 7 and higher]

ClientCertificateMappingAuthenticationSection Class [IIS 7 and higher]

CollectionElement Class [IIS 7 and higher]

DigestAuthenticationSection Class [IIS 7 and higher]

FormsAuthenticationConfiguration Class [IIS 7 and higher]

FormsAuthenticationCredentials Class [IIS 7 and higher]

IisClientCertificateMappingAuthenticationSection Class [IIS 7 and higher]

PassportAuthentication Class [IIS 7 and higher]

WindowsAuthenticationSection Class [IIS 7 and higher]