[This is preliminary documentation and is subject to change.]

Tries to get the value of a Cookie.

Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static bool TryGetCookieValue(

this IRequest request,

string name,

out string value

)

VB

Public Shared Function TryGetCookieValue( _

request As IRequest, _

name As String, _

<OutByRef value As String _

) As Boolean

C++

public:

static bool TryGetCookieValue(

IRequest^ request,

String^ name,

[OutString^% value

)

Parameters

name
Type: System.StringSystem.StringSystem::String
The name of the cookie.
value
Type: System.StringSystem.StringSystem::String
The value of the cookie if found; otherwise, null.

Return Value

Type: System.BooleanSystem.BooleanSystem::Boolean
true if the cookie is found in the request; otherwise, false.

See Also

RequestExtensionsRequestExtensionsRequestExtensions Class
Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace