ResponseUserProperties property
Gets or sets the PUBREC user properties. Read/write. Variant.
Syntax
msgEvent
.ResponseUserProperties
where
msgEvent
- is an MQTTMessageEvent parameter object.
TIP:
This property's data type is Variant, however, it can only be assigned an array of the MQTTUserProperty object.
Example
Dim userPropsText As String Dim userProps() As MQTTUserProperty If VarType(msgEvent.Message.UserProperties) <> Empty Then userProps = msgEvent.Message.UserProperties For i = LBound(userProps) To UBound(userProps) userPropsText = userPropsText + userProps(i).Name + ":" + userProps(i).Value + " " Next End If
Provide Feedback