EventGridModelFactory.IotHubDeviceConnectedEventData 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 IotHubDeviceConnectedEventData.
public static Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceConnectedEventData IotHubDeviceConnectedEventData (string deviceId = default, string moduleId = default, string hubName = default, Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = default);
static member IotHubDeviceConnectedEventData : string * string * string * Azure.Messaging.EventGrid.SystemEvents.DeviceConnectionStateEventInfo -> Azure.Messaging.EventGrid.SystemEvents.IotHubDeviceConnectedEventData
Public Shared Function IotHubDeviceConnectedEventData (Optional deviceId As String = Nothing, Optional moduleId As String = Nothing, Optional hubName As String = Nothing, Optional deviceConnectionStateEventInfo As DeviceConnectionStateEventInfo = Nothing) As IotHubDeviceConnectedEventData
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 IotHubDeviceConnectedEventData instance for mocking.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for