FormsAuthenticationConfiguration.RequireSSL Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy podczas przesyłania informacji uwierzytelniania jest wymagane połączenie ssl (Secure Sockets Layer).

public:
 property bool RequireSSL { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requireSSL", DefaultValue=false)]
public bool RequireSSL { get; set; }
[<System.Configuration.ConfigurationProperty("requireSSL", DefaultValue=false)>]
member this.RequireSSL : bool with get, set
Public Property RequireSSL As Boolean

Wartość właściwości

true jeśli wymagane jest połączenie SSL; w przeciwnym razie , false. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład kodu pokazuje, jak uzyskać dostęp do RequireSSL właściwości Zapoznaj się z przykładem kodu w FormsAuthenticationConfiguration temacie klasy, aby dowiedzieć się, jak uzyskać sekcję.

// Create a new FormsAuthentication object.
FormsAuthenticationConfiguration newformsAuthentication =
new FormsAuthenticationConfiguration();
' Create a new FormsAuthentication object.
  Dim newformsAuthentication _
  As New FormsAuthenticationConfiguration()

Uwagi

Jeśli RequireSSL jest trueto , aplikacja internetowa odrzuca wszystkie żądania uwierzytelniania formularzy, które nie używają połączenia SSL.

Dotyczy

Zobacz też