Partilhar via


EventGridModelFactory.IotHubDeviceCreatedEventData Método

Definição

Inicializa uma nova instância de IotHubDeviceCreatedEventData.

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

Parâmetros

deviceId
String

O identificador exclusivo do dispositivo. Esta cadeia sensível a maiúsculas e minúsculas pode ter até 128 carateres de comprimento e suporta carateres alfanuméricos asCII de 7 bits e os seguintes carateres especiais: - : . + % _ # * ? ! ( ) , = @ ; $ '.

hubName
String

O nome do Hub IoT onde o dispositivo foi criado ou eliminado.

twin
DeviceTwinInfo

Informações sobre o dispositivo duplo, que é a representação na cloud dos metadados do dispositivo da aplicação.

Devoluções

Uma nova IotHubDeviceCreatedEventData instância para gozar.

Aplica-se a