В следующих фрагментах экрана показан пример свойства user-id для данных телеметрии.
- Виртуальное устройство (представлено моим Azure IoT Hub Tester ) публикует данные телеметрии с systemperroperty $. Uid = ABCD1234

Данные телеметрии принимаются функцией azure:
public static void Run2([IoTHubTrigger("messages/events", Connection = "AzureIoTHubConnectionString")]EventData message, ILogger log)
{
log.LogInformation($"\nBody:\n\t{Encoding.UTF8.GetString(message.Body.Array)}" +
$"\nSystemProperties:\n\t{string.Join("\n\t", message.SystemProperties.Select(i => $"{i.Key}={i.Value}"))}" +
$"\nProperties:\n\t{string.Join("\n\t", message.Properties.Select(i => $"{ i.Key}={ i.Value}"))}");
log.LogInformation($"user-id={System.Text.Encoding.UTF8.GetString(((ArraySegment<byte>)message.SystemProperties["user-id"]).Array)}");
}
Журнал функции azure:

Обратите внимание, что тип значения user-id systemproperty равен
ArraySegment<byte>