System.Web.HttpCookieCollection.Get Method

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

Syntax

public HttpCookie Get (string name)

Parameters

name
The name of the cookie to retrieve from the collection.

Returns

The System.Web.HttpCookie specified by name.

Remarks

If the named cookie does not exist, this method creates a new cookie with that name.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0