Muokkaa

Jaa


HttpRequestMessage.GetCookie(Text, var Cookie) Method

Version: Available or changed with runtime version 13.0.

Gets the specified cookie given a name.

Syntax

[Ok := ]  HttpRequestMessage.GetCookie(Name: Text, var Cookie: Cookie)

Parameters

HttpRequestMessage
 Type: HttpRequestMessage
An instance of the HttpRequestMessage data type.

Name
 Type: Text
The name of the cookie.

Cookie
 Type: Cookie
The cookie object.

Return Value

[Optional] Ok
 Type: Boolean
true if the specified cookie was found, false otherwise. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

HttpRequestMessage Data Type
Getting Started with AL
Developing Extensions