AuthenticationMode Wyliczenie

Definicja

Określa tryb uwierzytelniania do użycia w aplikacji sieci Web.

public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode = 
Public Enum AuthenticationMode
Dziedziczenie
AuthenticationMode

Pola

Forms 3

Określa ASP.NET uwierzytelnianie oparte na formularzach jako tryb uwierzytelniania.

None 0

Określa brak uwierzytelniania.

Passport 2

Określa usługę Microsoft Passport jako tryb uwierzytelniania.

Windows 1

Określa Windows jako tryb uwierzytelniania. Ten tryb ma zastosowanie w przypadku używania metod uwierzytelniania Internet Information Services (IIS) Basic, Digest, Integrated Windows (NTLM/Kerberos) lub certyfikatów.

Przykłady

Poniższy przykład kodu pokazuje, jak uzyskać dostęp do Mode właściwości.

// 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

Uwagi

Mode Użyj właściwości , aby programowo skonfigurować typ uwierzytelniania używanego przez aplikację internetową.

Dotyczy

Zobacz też