EventHubProperties interface
IoT 中心使用的预配事件中心兼容终结点的属性。
属性
| endpoint | 与事件中心兼容的终结点。 注意:此属性不会序列化。 它只能由服务器填充。 |
| partition |
用于在与事件中心兼容的终结点中接收设备到云消息的分区数。 请参阅:https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages。 |
| partition |
与事件中心兼容的终结点中的分区 ID。 注意:此属性不会序列化。 它只能由服务器填充。 |
| path | 与事件中心兼容的名称。 注意:此属性不会序列化。 它只能由服务器填充。 |
| retention |
设备到云消息的保留时间(以天为单位)。 请参阅:https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages |
属性详细信息
endpoint
与事件中心兼容的终结点。 注意:此属性不会序列化。 它只能由服务器填充。
endpoint?: string
属性值
string
partitionCount
用于在与事件中心兼容的终结点中接收设备到云消息的分区数。 请参阅:https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages。
partitionCount?: number
属性值
number
partitionIds
与事件中心兼容的终结点中的分区 ID。 注意:此属性不会序列化。 它只能由服务器填充。
partitionIds?: string[]
属性值
string[]
path
与事件中心兼容的名称。 注意:此属性不会序列化。 它只能由服务器填充。
path?: string
属性值
string
retentionTimeInDays
设备到云消息的保留时间(以天为单位)。 请参阅:https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
retentionTimeInDays?: number
属性值
number