CookieHandler.Read Method (String)

.NET Framework (current version)
 

Reads the cookie associated with the current request that has the specified name.

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

public byte[] Read(
	string name
)

Parameters

name
Type: System.String

The name of the cookie to read.

Return Value

Type: System.Byte[]

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

Exception Condition
ArgumentException

name is null or empty.

The request is specified by HttpContext.Current

.NET Framework
Available since 4.5
Return to top
Show: