Share via


EventGridModelFactory.DeviceConnectionStateEventProperties Method

Definition

Initializes a new instance of DeviceConnectionStateEventProperties.

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

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 DeviceConnectionStateEventProperties instance for mocking.

Applies to