Share via


EventGridModelFactory.IotHubDeviceCreatedEventData メソッド

定義

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

パラメーター

deviceId
String

デバイスの一意識別子。 この大文字と小文字を区別する文字列は最大 128 文字で、ASCII 7 ビット英数字と次の特殊文字をサポートしています: - : 。 + % _ # * ? ! ( ) , = @ ; $ '.

hubName
String

デバイスが作成または削除された IoT Hub の名前。

twin
DeviceTwinInfo

デバイス ツインについての情報。アプリケーション デバイス メタデータのクラウド表現です。

戻り値

モック作成用の新しい IotHubDeviceCreatedEventData インスタンス。

適用対象