System.Web.Configuration.FormsAuthenticationConfiguration Class

Configures an ASP.NET application to use the System.Web.Configuration.AuthenticationMode forms modality.

See Also: FormsAuthenticationConfiguration Members

Syntax

public sealed class FormsAuthenticationConfiguration : System.Configuration.ConfigurationElement

Remarks

The System.Web.Configuration.FormsAuthenticationConfiguration class provides a way to programmatically access and modify the forms element of a configuration authentication section.

This type is part of a group that includes the System.Web.Configuration.FormsAuthenticationCredentials,the System.Web.Configuration.FormsAuthenticationUserCollection, and the System.Web.Configuration.FormsAuthenticationUser types. The types other than the collection type directly affect the underlying configuration tags.

Note:

The System.Web.Configuration.FormsAuthenticationConfiguration can write information into the related section of the configuration file according to the restrictions defined by the section property System.Configuration.SectionInformation.AllowDefinition whose value is System.Configuration.ConfigurationAllowDefinition.MachineToApplication. Any attempt to write in a configuration file at a level not allowed in the hierarchy will result in an error message generated by the parser. However, you can use this class to read configuration information at any level in the hierarchy. For safety and scalability, it is recommended that you use an external repository, such as a database, to keep the users' credentials.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0