AuthenticationMode Enumeration

Definition

Gibt den Authentifizierungsmodus an, der in einer Web-Anwendung verwendet werden soll.

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

Felder

Forms 3

Gibt die auf ASP.NET-Formularen basierende Authentifizierung als Authentifizierungsmodus an.

None 0

Gibt keine Authentifizierung an.

Passport 2

Gibt Microsoft Passport als Authentifizierungsmodus an.

Windows 1

Gibt Windows als Authentifizierungsmodus an. Dieser Modus gilt bei Verwendung der IIS-Authentifizierungsmethoden (Internet Information Services, Internetinformationsdienste) Standard, Digest, Integrierte Windows-Authentifizierung (NTLM/Kerberos) oder Zertifikate.

Beispiele

Im folgenden Codebeispiel wird der Zugriff auf die Mode-Eigenschaft veranschaulicht.

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

Hinweise

Verwenden Sie die Mode -Eigenschaft, um den von einer Webanwendung verwendeten Authentifizierungstyp programmgesteuert zu konfigurieren.

Gilt für:

Weitere Informationen