IoTHubMessage_GetContentEncodingSystemProperty()

Returns the content-encoding of the message payload, if defined. No new memory is allocated, the caller is not responsible for freeing the memory. The memory is valid until IoTHubMessage_Destroy is called on the message.

Syntax

#include "azure-iot-sdk-c/iothub_client/inc/iothub_message.h"

const char* IoTHubMessage_GetContentEncodingSystemProperty(IOTHUB_MESSAGE_HANDLE  iotHubMessageHandle);

Parameters

  • iotHubMessageHandle Handle to the message.

Return Value

A string with the content-encoding value if defined (or NULL otherwise).