Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.64 KB

httpheaders-tryaddwithoutvalidation-string-secrettext-method.md

File metadata and controls

47 lines (38 loc) · 1.64 KB
title description ms.author ms.date ms.topic author ms.reviewer
HttpHeaders.TryAddWithoutValidation(Text, SecretText) Method
Adds the specified secret header and its value into the HttpHeaders collection.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

HttpHeaders.TryAddWithoutValidation(Text, SecretText) Method

Version: Available or changed with runtime version 12.0.

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

Syntax

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

Parameters

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

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

Value
 Type: SecretText
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.

See Also

HttpHeaders Data Type
Getting Started with AL
Developing Extensions