Skip to main content
Version: 4.1

HttpCookieCollection

Namespace: Wisej.Core

Assembly: Wisej.Framework (4.1.0.0)

Encapsulates the cookies sent in an HTTP request.

public class HttpCookieCollection

Properties​

Instance member AllKeys​

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

Instance member Count​

Int32: Returns the number of cookies in the collection.

Instance member Item(name)​

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

Instance member Item(index)​

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

Methods​

Adds the specified cookie to the cookie collection.

ParameterTypeDescription
cookieHttpCookie

Instance member Clear()​

Clears all cookies from the cookie collection.

Instance member Get(name)​

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

ParameterTypeDescription
nameStringName of the cookie to retrieve.

Returns: HttpCookie.

Instance member Get(index)​

Returns the HttpCookie at the specified index.

ParameterTypeDescription
indexInt32Index of the cookie to retrieve.

Returns: HttpCookie.

Instance member GetKey(index)​

Returns the key (name) of the cookie at the specified numerical index.

ParameterTypeDescription
indexInt32

Returns: String.

Instance member Remove(name)​

Removes the cookie with the specified name from the collection.

ParameterTypeDescription
nameString

Updates the value of an existing cookie in a cookie collection.

ParameterTypeDescription
cookieHttpCookie