UtilWebSetCookies(Uri, Boolean, Cookie) Method
Sets one or more cookies for the specified URI.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetCookies(
Uri uri,
bool persistent,
params Cookie[] cookies
)
Public Shared Sub SetCookies (
uri As Uri,
persistent As Boolean,
ParamArray cookies As Cookie()
)
Dim uri As Uri
Dim persistent As Boolean
Dim cookies As Cookie()
UtilWeb.SetCookies(uri, persistent,
cookies)
public:
static void SetCookies(
Uri^ uri,
bool persistent,
... array<Cookie^>^ cookies
)
static member SetCookies :
uri : Uri *
persistent : bool *
cookies : Cookie[] -> unit
No code example is currently available or this language may not be supported.
Parameters
- uri Uri
-
The URI.
- persistent Boolean
-
A value that indicates the cookie persistance.
If set to (persistent), the cookie is set in the operating system cache.
If set to (non-persistent), the cookie is only set for the life-time of the current process.
- cookies Cookie
-
The cookies to set.