AuthenticationSection.Mode Property

 

Gets or sets the authentication modality.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("mode", DefaultValue := AuthenticationMode.Windows)>
Public Property Mode As AuthenticationMode

The following code example shows how to use the Mode property.

' Get the current Mode property.
  Dim currentMode As AuthenticationMode = _
  authenticationSection.Mode

' Set the Mode property to Windows.
  authenticationSection.Mode = _
  AuthenticationMode.Windows

.NET Framework
Available since 2.0
Return to top
Show: