HttpCookiesSection.RequireSSL Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of SSL-communicatie (Secure Sockets Layer) vereist is.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

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 SSL is ingeschakeld; anders, false. De standaardwaarde is false.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de RequireSSL eigenschap gebruikt.


// Get the current RequireSSL.
Boolean requireSSLValue = 
    httpCookiesSection.RequireSSL;

// Set the RequireSSL.
httpCookiesSection.RequireSSL = 
    false;

' Get the current RequireSSL.
Dim requireSSLValue As Boolean = _
httpCookiesSection.RequireSSL

' Set the RequireSSL.
httpCookiesSection.RequireSSL = _
False

Opmerkingen

De RequireSSL eigenschap schakelt de uitvoer van het beveiligde cookiekenmerk in of uit, zoals beschreven in RFC 2109. Wanneer deze wordt gebruikt door compatibele browsers, wordt de cookie alleen via een verbinding via SSL/TLS teruggestuurd. De standaardwaarde is false.

Van toepassing op

Zie ook