AuthenticationMode 列挙型
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Web アプリケーションで使用する認証モードを指定します。
public enum class AuthenticationMode
public enum AuthenticationMode
type AuthenticationMode =
Public Enum 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 アプリケーションで使用される認証の種類をプログラムで構成します。