AuthenticationMode Enum

Definition

Anger det autentiseringsläge som ska användas i ett webbprogram.

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

Fält

Name Värde Description
None 0

Anger ingen autentisering.

Windows 1

Anger Windows som autentiseringsläge. Det här läget gäller när du använder autentiseringsmetoderna Internet Information Services (IIS) Basic, Digest, Integrated Windows (NTLM/Kerberos) eller certifikat.

Passport 2

Anger Microsoft Passport som autentiseringsläge.

Forms 3

Anger ASP.NET Formulärbaserad autentisering som autentiseringsläge.

Exempel

Följande kodexempel visar hur du kommer åt egenskapen Mode .

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

Kommentarer

Använd egenskapen Mode för att programmatiskt konfigurera den typ av autentisering som används av ett webbprogram.

Gäller för

Se även