EventGridModelFactory.DeviceLifeCycleEventProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.