WinINetInternetSetCookie Method

Creates a cookie associated with the specified URL.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("WinINet.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool InternetSetCookie(
	string urlName,
	string cookieName,
	string cookieData
)

Parameters

urlName  String
The URL for which the cookie should be set.
cookieName  String
The name to be associated with the cookie data. If this parameter is , no name is associated with the cookie.
cookieData  String
Actual data to be associated with the URL.

Return Value

Boolean
Returns if successful, or otherwise.

Remarks

See Also