AuthenticationMode 列挙型

定義

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

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

フィールド

Forms 3

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

None 0

認証を指定しません。

Passport 2

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

Windows 1

認証モードとして Windows を指定します。 このモードは、基本認証、ダイジェスト認証、統合 Windows 認証 (NTLM および Kerberos)、証明書などのインターネット インフォメーション サービス (IIS: Internet Information Services) 認証方式を使用する場合に指定します。

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 アプリケーションで使用される認証の種類をプログラムで構成します。

適用対象

こちらもご覧ください