AuthenticationSection.Mode Property

Gets or sets the authentication modality.

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

'Declaration
<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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft