System.Web.Configuration.AuthenticationSection Class

Configures the authentication for a Web application. This class cannot be inherited.

See Also: AuthenticationSection Members


public sealed class AuthenticationSection : System.Configuration.ConfigurationSection


The System.Web.Configuration.AuthenticationSection class provides a way to programmatically access and modify the authentication section of a configuration file.


The System.Web.Configuration.AuthenticationSection 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.


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