Class MemoryCookieProvider
- Namespace
- AngleSharp.Io
- Assembly
- AngleSharp.dll
Represents the default cookie service. This class can be inherited.
public class MemoryCookieProvider : ICookieProvider
- Inheritance
-
MemoryCookieProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
MemoryCookieProvider()
Creates a new cookie service for non-persistent cookies.
public MemoryCookieProvider()
Properties
Container
Gets the associated cookie container.
public CookieContainer Container { get; }
Property Value
Methods
GetCookie(Url)
Gets the cookie value of the given address.
public string GetCookie(Url url)
Parameters
url
UrlThe origin of the cookie.
Returns
- string
The value of the cookie.
SetCookie(Url, string)
Sets the cookie value for the given address.
public void SetCookie(Url url, string value)