AuthenticationMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the authentication mode to use in a Web application.
public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode =
Public Enum AuthenticationMode
- Inheritance
Fields
Forms | 3 | Specifies ASP.NET Forms-based authentication as the authentication mode. |
None | 0 | Specifies no authentication. |
Passport | 2 | Specifies Microsoft Passport as the authentication mode. |
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. |
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;
' Get the current Mode property.
Dim currentMode As AuthenticationMode = _
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
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈