Mode Property
Collapse the table of content
Expand the table of content

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 AuthenticationMode Mode { get; set; }

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

// Get the current Mode property.
AuthenticationMode currentMode = 
    authenticationSection.Mode;

// Set the Mode property to Windows.
authenticationSection.Mode = 
    AuthenticationMode.Windows;

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft