CookieHandler.Read Method ()

.NET Framework (current version)

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

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

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

public byte[] Read()

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. The request is specified by HttpContext.Current.

.NET Framework
Available since 4.5
Return to top