Share via


CookieHeaderValue.Secure Property

Gets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only.

Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Property Secure As Boolean 
    Get 
    Set
'Usage
Dim instance As CookieHeaderValue 
Dim value As Boolean 

value = instance.Secure

instance.Secure = value
public bool Secure { get; set; }
public:
property bool Secure {
    bool get ();
    void set (bool value);
}
member Secure : bool with get, set
function get Secure () : boolean 
function set Secure (value : boolean)

Property Value

Type: System.Boolean
true to transmit the cookie over an SSL connection (HTTPS); otherwise, false.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace