AuthenticationMode Enumeration
TOC
Collapse the table of content
Expand the table of content

AuthenticationMode Enumeration

 

Specifies the authentication mode to use in a Web application.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public enum AuthenticationMode

Member nameDescription
Forms

Specifies ASP.NET Forms-based authentication as the authentication mode.

None

Specifies no authentication.

Passport

Obsolete.Specifies Microsoft Passport as the authentication mode.

Windows

Specifies Windows as the authentication mode. This mode applies when using the Internet Information Services (IIS) authentication methods Basic, Digest, Integrated Windows (NTLM/Kerberos), or certificates.

Use the Mode property to programmatically configure the type of authentication used by a Web application,

The following code example shows how to access the Mode property.

// Get the current Mode property.
AuthenticationMode currentMode = 
    authenticationSection.Mode;

// Set the Mode property to Windows.
authenticationSection.Mode = 
    AuthenticationMode.Windows;

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft