AuthenticationMode Énumération
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Spécifie le mode d’authentification à utiliser dans une application web.
public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode =
Public Enum AuthenticationMode
- Héritage
Champs
| Nom | Valeur | Description |
|---|---|---|
| None | 0 | Spécifie aucune authentification. |
| Windows | 1 | Spécifie Windows comme mode d’authentification. Ce mode s’applique lors de l’utilisation des méthodes d’authentification Iis (Internet Information Services) De base, Digest, Windows intégré (NTLM/Kerberos) ou des certificats. |
| Passport | 2 | Spécifie Microsoft Passport comme mode d’authentification. |
| Forms | 3 | Spécifie ASP.NET l’authentification basée sur les formulaires comme mode d’authentification. |
Exemples
L’exemple de code suivant montre comment accéder à la Mode propriété.
// 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
Remarques
Utilisez la Mode propriété pour configurer par programmation le type d’authentification utilisé par une application web,