CookieHandler.Read Method (HttpContext)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Reads the cookie associated with the current request that has the default name, domain, and path.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public byte[] Read(
	HttpContext context
)

Parameters

context
Type: System.Web.HttpContext

The HttpContext for the request.

Return Value

Type: System.Byte[]

The cookie value or null if the cookie was not found.

The name of the cookie is specified by the Name property.

.NET Framework
Available since 4.5
Return to top
Show: