你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridModelFactory.IotHubDeviceDeletedEventData 方法

定义

初始化 IotHubDeviceDeletedEventData 的新实例。

public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDeletedEventData IotHubDeviceDeletedEventData (string deviceId = default, string hubName = default, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = default);
static member IotHubDeviceDeletedEventData : string * string * Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo -> Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceDeletedEventData
Public Shared Function IotHubDeviceDeletedEventData (Optional deviceId As String = Nothing, Optional hubName As String = Nothing, Optional twin As DeviceTwinInfo = Nothing) As IotHubDeviceDeletedEventData

参数

deviceId
String

设备的唯一标识符。 此区分大小写的字符串最多可以包含 128 个字符,并支持 ASCII 7 位字母数字字符以及以下特殊字符:- : 。 + % _ # * ? ! ( ) , = @ ; $ '.

hubName
String

已创建或已删除设备的 IoT 中心的名称。

twin
DeviceTwinInfo

有关设备孪生(即应用程序设备元数据的云表示形式)的信息。

返回

用于模拟的新 IotHubDeviceDeletedEventData 实例。

适用于