Redigeeri

Jagamisviis:


CookieHandler.ReadCore(String, HttpContext) Method

Definition

When overridden in a derived class, reads the cookie that has the specified name and that is associated with the specified request.

protected:
 abstract cli::array <System::Byte> ^ ReadCore(System::String ^ name, System::Web::HttpContext ^ context);
protected abstract byte[] ReadCore (string name, System.Web.HttpContext context);
abstract member ReadCore : string * System.Web.HttpContext -> byte[]
Protected MustOverride Function ReadCore (name As String, context As HttpContext) As Byte()

Parameters

name
String

The name of the cookie.

context
HttpContext

The HttpContext for the request.

Returns

Byte[]

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

Remarks

Called from the overloaded Read methods to do the actual work of reading the cookie. The Read methods will ensure that name is a non-empty string.

Notes to Implementers

You must override this method. The implementation is entirely up to the developer. In the typical case, implementations read the cookie data from the Cookies collection, however, this is not a requirement.

Applies to