Udostępnij za pośrednictwem


AuthenticationMode Wyliczenie

Definicja

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

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

Pola

Nazwa Wartość Opis
None 0

Określa brak uwierzytelniania.

Windows 1

Określa system Windows jako tryb uwierzytelniania. Ten tryb ma zastosowanie w przypadku korzystania z metod uwierzytelniania internetowych usług informacyjnych (IIS) Basic, Digest, Integrated Windows (NTLM/Kerberos) lub certyfikatów.

Passport 2

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

Forms 3

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

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ż