WinHttpHandler.CookieUsePolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
property System::Net::Http::CookieUsePolicy CookieUsePolicy { System::Net::Http::CookieUsePolicy get(); void set(System::Net::Http::CookieUsePolicy value); };
public System.Net.Http.CookieUsePolicy CookieUsePolicy { get; set; }
member this.CookieUsePolicy : System.Net.Http.CookieUsePolicy with get, set
Public Property CookieUsePolicy As CookieUsePolicy
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈