CookieContainer Property

HttpWebRequest.CookieContainer Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the collection of CookieCollection objects associated with the HTTP request.

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

'Declaration
Public Overridable Property CookieContainer As CookieContainer

Property Value

Type: System.Net.CookieContainer
A CookieContainer that contains a collection of CookieCollection objects associated with the HTTP request.

ExceptionCondition
NotImplementedException

This property is not implemented.

If an application implements a custom WebRequest class and does not override the CookieContainer property, then the NotImplementedException is thrown.

NoteNote:

In versions of Windows Phone prior to Windows Phone 8 (8.0.10322.0), a response from an HttpWebRequest would have HttpOnly cookies filtered from the response before the app could read the cookie values. This issue has been resolved in Windows Phone 8 (8.0.10322.0). When you get the response, the original cookies and all of the HttpOnly cookies will be contained in the CookieContainer property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft