Share via


EventGridModelFactory.IotHubDeviceDeletedEventData Method

Definition

Initializes a new instance of 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

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: - : . + % _ # * ? ! ( ) , = @ ; $ '.

hubName
String

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

twin
DeviceTwinInfo

Information about the device twin, which is the cloud representation of application device metadata.

Returns

A new IotHubDeviceDeletedEventData instance for mocking.

Applies to