UseCookies Property

HttpClientHandler.UseCookies Property

.NET Framework (current version)
 

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)

public bool UseCookies { get; set; }

Property Value

Type: System.Boolean

Returns Boolean.

true if the if the handler supports uses the CookieContainer property to store server cookies and uses these cookies when sending requests; otherwise false. The default value is true.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft