FormsAuthenticationConfiguration.RequireSSL Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of een SSL-verbinding (Secure Sockets Layer) vereist is bij het verzenden van verificatiegegevens.

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

Waarde van eigenschap

true als er een SSL-verbinding is vereist; anders, false. De standaardwaarde is false.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang krijgt tot de RequireSSL eigenschap Raadpleeg het codevoorbeeld in het FormsAuthenticationConfiguration klasseonderwerp voor meer informatie over het ophalen van de sectie.

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

Opmerkingen

Als RequireSSL dat het is true, weigert een webtoepassing alle formulierverificatieaanvragen die geen SSL-verbinding gebruiken.

Van toepassing op

Zie ook