HttpClientHandler.CookieContainer 속성

정의

처리기에서 서버 쿠키를 저장하는 데 사용되는 쿠키 컨테이너를 가져오거나 설정합니다.

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

속성 값

CookieContainer

처리기에서 서버 쿠키를 저장하는 데 사용되는 쿠키 컨테이너입니다.

특성

설명

이 속성은 이 CookieContainer 처리기와 연결된 쿠키를 포함하는 클래스의 CookieContainer 인스턴스를 제공합니다.

속성이 UseCookies 면 이 속성은 CookieContainer true서버 쿠키를 저장하는 데 사용되는 쿠키 컨테이너를 나타냅니다. 사용자는 이 속성을 사용하여 요청을 보내기 전에 사용자 지정 쿠키를 설정할 수 있습니다. 속성이 UseCookies false이고 사용자가 쿠키를 CookieContainer추가하는 경우 쿠키는 무시되고 서버로 전송되지 않습니다. 이 값을 CookieContainer null 설정하면 예외가 throw됩니다.

적용 대상