CookieContainer.GetCookies Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the CookieCollection associated with the specified Uniform Resource Identifier (URI).
Assembly: System.Net (in System.Net.dll)
Parameters
- uri
- Type: System.Uri
The URI to retrieve the CookieCollection for.
Return Value
Type: System.Net.CookieCollectionThe cookie collection associated with the specified URI.
| Exception | Condition |
|---|---|
| ArgumentNullException | uri is null. |
The GetCookies method returns a new instance of CookieCollection.
Show: