EventGridModelFactory.IotHubDeviceCreatedEventData 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 IotHubDeviceCreatedEventData.
public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceCreatedEventData IotHubDeviceCreatedEventData (string deviceId = default, string hubName = default, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo twin = default);
static member IotHubDeviceCreatedEventData : string * string * Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo -> Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceCreatedEventData
Public Shared Function IotHubDeviceCreatedEventData (Optional deviceId As String = Nothing, Optional hubName As String = Nothing, Optional twin As DeviceTwinInfo = Nothing) As IotHubDeviceCreatedEventData
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 IotHubDeviceCreatedEventData instance for mocking.
Applies to
Azure SDK for .NET