Bewerken

Delen via


HttpRequestMessage.SetCookie(Text, Text) Method

Version: Available or changed with runtime version 13.0.

Sets the cookie given a name and value.

Syntax

[Ok := ]  HttpRequestMessage.SetCookie(Name: Text, Value: Text)

Parameters

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

Name
 Type: Text
The name of the cookie.

Value
 Type: Text
The value of the cookie.

Return Value

[Optional] Ok
 Type: Boolean
true if the cookie was successfully set, 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