AuthenticationSection.Mode プロパティ

定義

認証モードを取得または設定します。

public:
 property System::Web::Configuration::AuthenticationMode Mode { System::Web::Configuration::AuthenticationMode get(); void set(System::Web::Configuration::AuthenticationMode value); };
[System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.AuthenticationMode.Windows)]
public System.Web.Configuration.AuthenticationMode Mode { get; set; }
[<System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.AuthenticationMode.Windows)>]
member this.Mode : System.Web.Configuration.AuthenticationMode with get, set
Public Property Mode As AuthenticationMode

プロパティ値

AuthenticationMode

AuthenticationMode 値のいずれか 1 つ。

属性

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

適用対象

こちらもご覧ください