Share via


FormsAuthenticationConfiguration.RequireSSL Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob beim Übertragen der Authentifizierungsinformationen eine SSL-Verbindung (Secure Sockets Layer) erforderlich ist.

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

Eigenschaftswert

Boolean

true, wenn eine SSL-Verbindung erforderlich ist, andernfalls false. Der Standardwert ist false.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie Sie auf die Eigenschaft im Klassenthema auf das RequireSSL Codebeispiel FormsAuthenticationConfiguration verweisen, um zu erfahren, wie Sie den Abschnitt abrufen.

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

Hinweise

Ist dies der Grund RequireSSL true, weist eine Webanwendung alle Formularauthentifizierungsanforderungen ab, die keine SSL-Verbindung verwenden.

Gilt für

Siehe auch