영어로 읽기 편집

다음을 통해 공유


WinHttpHandler.CookieUsePolicy Property

Definition

Gets or sets a value that indicates how cookies should be managed and used. Developers can choose to ignore cookies, allow the handler to automatically manage them or manually handle them using a CookieContainer object.

public System.Net.Http.CookieUsePolicy CookieUsePolicy { get; set; }

Property Value

Remarks

The default for this property is CookieUsePolicy.UseInternalCookieStoreOnly. If this value is set to CookieUsePolicy.UseSpecifiedCookieContainer, then a container object must be initialized and assigned to the CookieContainer property. Otherwise, an exception will be thrown when trying to send a request.

Applies to

제품 버전
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)