Condividi tramite


EventGridModelFactory.DeviceLifeCycleEventProperties Method

Definition

Initializes a new instance of DeviceLifeCycleEventProperties.

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

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

Applies to