Delen via


HttpClientHandler.UseCookies Property

Gets or sets a value that indicates whether the handler uses the CookieContainer property to store server cookies and uses these cookies when sending requests.

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

Syntax

'Declaration
Public Property UseCookies As Boolean 
    Get 
    Set
'Usage
Dim instance As HttpClientHandler 
Dim value As Boolean 

value = instance.UseCookies

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

Property Value

Type: System.Boolean

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace