共用方式為


EventGridModelFactory.IotHubDeviceTelemetryEventData 方法

定義

初始化 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 實例。

適用於