AuthenticationMode Výčet

Definice

Určuje režim ověřování, který se má použít ve webové aplikaci.

public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode = 
Public Enum AuthenticationMode
Dědičnost
AuthenticationMode

Pole

Forms 3

Určuje ASP.NET ověřování založené na formulářích jako režim ověřování.

None 0

Určuje žádné ověřování.

Passport 2

Určuje Microsoft Passport jako režim ověřování.

Windows 1

Určuje Windows jako režim ověřování. Tento režim platí při použití metod ověřování Internetová informační služba (IIS), Basic, Digest, Integrated Windows (NTLM/Kerberos) nebo certifikátů.

Příklady

Následující příklad kódu ukazuje, jak získat přístup k Mode vlastnosti.

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

Poznámky

Mode Použití vlastnosti k programové konfiguraci typu ověřování používaného webovou aplikací,

Platí pro

Viz také