Muokkaa

Jaa


HttpContent.ReadAs(var Text) Method

Version: Available or changed with runtime version 1.0.

Reads the content into the provided text.

Syntax

[Ok := ]  HttpContent.ReadAs(var OutputString: Text)

Parameters

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

OutputString
 Type: Text
The variable that will contain the HTTP content as a string.

Return Value

[Optional] Ok
 Type: Boolean
Accessing the HttpContent property of HttpResponseMessage in a case when the request fails will result in an error. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

HttpContent Data Type
Get Started with AL
Developing Extensions