次の方法で共有


AuthenticationMode 列挙型

定義

Web アプリケーションで使用する認証モードを指定します。

public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode = 
Public Enum AuthenticationMode
継承
AuthenticationMode

フィールド

名前 説明
None 0

認証を指定しません。

Windows 1

Windows を認証モードとして指定します。 このモードは、インターネット インフォメーション サービス (IIS) 認証方法 (Basic、Digest、Integrated Windows (NTLM/Kerberos)、または証明書を使用する場合に適用されます。

Passport 2

認証モードとして Microsoft Passport を指定します。

Forms 3

フォーム ベースの認証 ASP.NET 認証モードとして指定します。

次のコード例は、 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

注釈

Mode プロパティを使用して、Web アプリケーションで使用される認証の種類をプログラムで構成します。

適用対象

こちらもご覧ください