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

屬性

適用於