HttpCookie Constructor (String)

 

Creates and names a new cookie.

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

Public Sub New (
	name As String
)

Parameters

name
Type: System.String

The name of the new cookie.

The following code example creates and names a new cookie.

Dim MyCookie As New HttpCookie("LastVisit")

.NET Framework
Available since 1.1
Return to top
Show: