Export (0) Print
Expand All
Expand Minimize
2 out of 2 rated this helpful - Rate this topic

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
public enum AuthenticationMode
public enum AuthenticationMode
 Member nameDescription
FormsSpecifies ASP.NET Forms-based authentication as the authentication mode. 
NoneSpecifies no authentication. 
PassportSpecifies Microsoft Passport as the authentication mode. 
WindowsSpecifies 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;


Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.