IoTHubMessage_GetContentTypeSystemProperty()

Returns the content-type 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_GetContentTypeSystemProperty(IOTHUB_MESSAGE_HANDLE  iotHubMessageHandle);

Parameters

  • iotHubMessageHandle Handle to the message.

Return Value

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