CookieHandler.Read CookieHandler.Read CookieHandler.Read CookieHandler.Read Method

Definition

Reads a cookie.

Overloads

Read() Read() Read() Read()

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

Read(String) Read(String) Read(String) Read(String)

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

Read(HttpContext) Read(HttpContext) Read(HttpContext) Read(HttpContext)

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

Read(String, HttpContext) Read(String, HttpContext) Read(String, HttpContext) Read(String, HttpContext)

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

Read() Read() Read() Read()

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

public:
 cli::array <System::Byte> ^ Read();
public byte[] Read ();
member this.Read : unit -> byte[]
Public Function Read () As Byte()

Returns

Byte[]

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

Remarks

The name of the cookie is specified by the Name property. The request is specified by HttpContext.Current.

Read(String) Read(String) Read(String) Read(String)

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

public:
 cli::array <System::Byte> ^ Read(System::String ^ name);
public byte[] Read (string name);
member this.Read : string -> byte[]
Public Function Read (name As String) As Byte()

Parameters

name
String String String String

The name of the cookie to read.

Returns

Byte[]

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

Exceptions

Remarks

The request is specified by HttpContext.Current

Read(HttpContext) Read(HttpContext) Read(HttpContext) Read(HttpContext)

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

public:
 cli::array <System::Byte> ^ Read(System::Web::HttpContext ^ context);
public byte[] Read (System.Web.HttpContext context);
member this.Read : System.Web.HttpContext -> byte[]
Public Function Read (context As HttpContext) As Byte()

Parameters

Returns

Byte[]

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

Remarks

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

Read(String, HttpContext) Read(String, HttpContext) Read(String, HttpContext) Read(String, HttpContext)

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

public:
 cli::array <System::Byte> ^ Read(System::String ^ name, System::Web::HttpContext ^ context);
public byte[] Read (string name, System.Web.HttpContext context);
member this.Read : string * System.Web.HttpContext -> byte[]
Public Function Read (name As String, context As HttpContext) As Byte()

Parameters

name
String String String String

The name of the cookie to read.

Returns

Byte[]

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

Exceptions

Applies to