다음을 통해 공유


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 하나입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 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

적용 대상

추가 정보