WinINetInternetSetCookie Method
Creates a cookie associated with the specified URL.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("WinINet.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function InternetSetCookie (
urlName As String,
cookieName As String,
cookieData As String
) As Boolean
Dim urlName As String
Dim cookieName As String
Dim cookieData As String
Dim returnValue As Boolean
returnValue = WinINet.InternetSetCookie(urlName,
cookieName, cookieData)
public:
[DllImportAttribute(L"WinINet.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool InternetSetCookie(
String^ urlName,
String^ cookieName,
String^ cookieData
)
[<DllImportAttribute("WinINet.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member InternetSetCookie :
urlName : string *
cookieName : string *
cookieData : string -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
Returns
if successful, or
otherwise.