英語で読む

次の方法で共有


AuthenticationMode 列挙型

定義

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

C#
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 プロパティへのアクセス方法を次のコード例に示します。

C#
// Get the current Mode property.
AuthenticationMode currentMode =
    authenticationSection.Mode;

// Set the Mode property to Windows.
authenticationSection.Mode =
    AuthenticationMode.Windows;

注釈

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

適用対象

製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

こちらもご覧ください