Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HttpClientHandler.UseCookies Property

Definition

Namespace:
System.Net.Http
Assembly:
System.Net.Http.dll
Assemblies:
netstandard.dll, System.Net.Http.dll
Assembly:
netstandard.dll
Source:
HttpClientHandler.cs
Source:
HttpClientHandler.cs
Source:
HttpClientHandler.cs
Source:
HttpClientHandler.cs
Source:
HttpClientHandler.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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.

public:
 property bool UseCookies { bool get(); void set(bool value); };
public bool UseCookies { get; set; }
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public bool UseCookies { get; set; }
member this.UseCookies : bool with get, set
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.UseCookies : bool with get, set
Public Property UseCookies As Boolean

Property Value

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.

Attributes

Applies to


Feedback

Was this page helpful?