Links

HttpCookieCollection

Wisej.Core.HttpCookieCollection
Namespace: Wisej.Core
Assembly: Wisej.Framework (3.1.0.0)
Encapsulates the cookies sent in an HTTP request.
C#
VB.NET
public class HttpCookieCollection
Public Class HttpCookieCollection

Properties

AllKeys

String[]: Returns all the keys (cookie names) in the cookie collection.

Count

Int32: Returns the number of cookies in the collection.

Item(name)

HttpCookie: Returns the cookie with the specified name from the cookie collection.

Item(index)

HttpCookie: Returns the cookie with the specified numerical index from the cookie collection.

Methods

Adds the specified cookie to the cookie collection.
Parameter
Type
Description
cookie

Clear()

Clears all cookies from the cookie collection.

Get(name)

Returns the cookie with the specified name from the cookie collection.
Parameter
Type
Description
name
String
Name of the cookie to retrieve.
Returns: HttpCookie.

Get(index)

Returns the HttpCookie at the specified index.
Parameter
Type
Description
index
Int32
Index of the cookie to retrieve.
Returns: HttpCookie.

GetKey(index)

Returns the key (name) of the cookie at the specified numerical index.
Parameter
Type
Description
index
Int32
Returns: String.

Remove(name)

Removes the cookie with the specified name from the collection.
Parameter
Type
Description
name
String
Updates the value of an existing cookie in a cookie collection.
Parameter
Type
Description
cookie