你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventGridModelFactory.IotHubDeviceTelemetryEventData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 IotHubDeviceTelemetryEventData 的新实例。
public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData IotHubDeviceTelemetryEventData (object body = default, System.Collections.Generic.IReadOnlyDictionary<string,string> properties = default, System.Collections.Generic.IReadOnlyDictionary<string,string> systemProperties = default);
static member IotHubDeviceTelemetryEventData : obj * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceTelemetryEventData
Public Shared Function IotHubDeviceTelemetryEventData (Optional body As Object = Nothing, Optional properties As IReadOnlyDictionary(Of String, String) = Nothing, Optional systemProperties As IReadOnlyDictionary(Of String, String) = Nothing) As IotHubDeviceTelemetryEventData
参数
- body
- Object
来自设备的消息内容。
- properties
- IReadOnlyDictionary<String,String>
应用程序属性是用户定义的字符串,可以添加到消息。 这些字段是可选的。
- systemProperties
- IReadOnlyDictionary<String,String>
系统属性有助于标识消息的内容和源。
返回
用于模拟的新 IotHubDeviceTelemetryEventData 实例。