ICON Software Solutions
The Icon.Tools.SetCookieCollection function.

Namespace:  Icon
Assembly:  Icon (in Icon.dll) Version: 2011.1.1.6 (2011.1.1.6)

Syntax

C#
public static bool SetCookieCollection(
	string strCookieName,
	SortedList slCookieColl
)
Visual Basic (Declaration)
Public Shared Function SetCookieCollection ( _
	strCookieName As String, _
	slCookieColl As SortedList _
) As Boolean
Visual C++
public:
static bool SetCookieCollection(
	String^ strCookieName, 
	SortedList^ slCookieColl
)
J#
public static boolean SetCookieCollection(
	String strCookieName,
	SortedList slCookieColl
)

Parameters

strCookieName
Type: System..::.String
The name of the cookie whose values we want to set, as string.
slCookieColl
Type: System.Collections..::.SortedList
The sorted list from which we will read to set the cookie values.

Return Value

A Boolean value set to true if the cookie has been set.

Remarks

This function will take a sorted list consisting of key value pairs and either create a new cookie with those key value pairs or set an existing cookie's key value pairs to the items in the sorted list.

See Also