Editar

Compartir vía


HttpResponseMessage.GetCookie(Text, var Cookie) Method

Version: Available or changed with runtime version 13.0.

Gets the specified cookie given a name.

Syntax

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

Parameters

HttpResponseMessage
 Type: HttpResponseMessage
An instance of the HttpResponseMessage 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.

HttpResponseMessage Data Type
Getting Started with AL
Developing Extensions