Modifier

Partager via


HttpHeaders.TryAddWithoutValidation(Text, Text) Method

Version: Available or changed with runtime version 3.0.

Adds the specified header and its value into the HttpHeaders collection. Doesn't validate the provided value.

Syntax

[Ok := ]  HttpHeaders.TryAddWithoutValidation(Name: Text, Value: Text)

Parameters

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

Name
 Type: Text
The header to add to the collection.

Value
 Type: Text
The content of the header.

Return Value

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

HttpHeaders Data Type
Getting Started with AL
Developing Extensions