AuthenticationSection.Mode Propiedad

Definición

Obtiene o establece la modalidad de autenticación.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=Mono.Cecil.CustomAttributeArgument)]
public System.Web.Configuration.AuthenticationMode Mode { get; set; }
member this.Mode : System.Web.Configuration.AuthenticationMode with get, set
Public Property Mode As AuthenticationMode

Valor de propiedad

Uno de los valores de AuthenticationMode .One of the AuthenticationMode values.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad Mode.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

Se aplica a

Consulte también: