Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpCookieManager class

Applies to Windows and Windows Phone

Add or delete an HttpCookie or view the cookies associated with an app.

Syntax


public ref class HttpCookieManager sealed 

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The HttpCookieManager class has these types of members:

Methods

The HttpCookieManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
DeleteCookie Delete an HttpCookie from the cookies associated with an app.
GetCookies Gets an HttpCookieCollection that contains the HttpCookie instances that are associated with a specific URI.
SetCookie(HttpCookie) Add or change an HttpCookie in the cookies associated with an app that is sent on future requests.
SetCookie(HttpCookie, Boolean) Add or change an HttpCookie in the cookies associated with an app.

 

Remarks

The HttpCookieManager object is used to add or delete an HttpCookie or view the cookies associated with an app.

The CookieManager property on HttpBaseProtocolFilter returns an HttpCookieManager object. To construct an HttpCookieManager, a HttpBaseProtocolFilter object is first created and then the CookieManager property on HttpBaseProtocolFilter returns the HttpCookieManager object.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

CookieManager
HttpBaseProtocolFilter
Object

 

 

Show:
© 2014 Microsoft