AuthenticationMode Enum

Definition

Specifies the authentication mode to use in a Web application.

public enum AuthenticationMode
Inheritance
AuthenticationMode

Fields

Name Value Description
None 0

Specifies no authentication.

Windows 1

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.

Passport 2

Specifies Microsoft Passport as the authentication mode.

Forms 3

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

Examples

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;

Remarks

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

Applies to

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also