Compartilhar via


HttpClientHandler.CookieContainer Property

Gets or sets the cookie container used to store server cookies by the handler.

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

Syntax

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

value = instance.CookieContainer

instance.CookieContainer = value
public CookieContainer CookieContainer { get; set; }
public:
property CookieContainer^ CookieContainer {
    CookieContainer^ get ();
    void set (CookieContainer^ value);
}
member CookieContainer : CookieContainer with get, set
function get CookieContainer () : CookieContainer 
function set CookieContainer (value : CookieContainer)

Property Value

Type: System.Net.CookieContainer

See Also

Reference

HttpClientHandler Class

System.Net.Http Namespace