HttpClientHandler.UseCookies 属性

定义

获取或设置一个值,该值指示处理程序是否使用 CookieContainer 属性来存储服务器 Cookie,并在发送请求时使用这些 Cookie。

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

属性值

true 如果 处理程序支持,则使用 CookieContainer 属性来存储服务器 Cookie 并在发送请求时使用这些 Cookie,则为 ;否则为 false。 默认值是 true

属性

适用于