Share via


EventGridModelFactory.IotHubDeviceDisconnectedEventData Method

Definition

Initializes a new instance of IotHubDeviceDisconnectedEventData.

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

Parameters

deviceId
String

The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.

moduleId
String

The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.

hubName
String

Name of the IoT Hub where the device was created or deleted.

deviceConnectionStateEventInfo
DeviceConnectionStateEventInfo

Information about the device connection state event.

Returns

A new IotHubDeviceDisconnectedEventData instance for mocking.

Applies to