AuthenticationSection.Mode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the authentication modality.
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
Property Value
One of the AuthenticationMode values.
- Attributes
Examples
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;
' Get the current Mode property.
Dim currentMode As AuthenticationMode = _
authenticationSection.Mode
' Set the Mode property to Windows.
authenticationSection.Mode = _
AuthenticationMode.Windows
Applies to
See also
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.