HttpCookieCollection.Item Property (String)

 

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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

member Item : 
        name:string -> HttpCookie with get

Parameters

name
Type: System.String

Name of cookie to retrieve.

Property Value

Type: System.Web.HttpCookie

The HttpCookie specified by name.

The following example gets the cookie with the name "LastVisit" and extracts its value.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: