MessageProperty 类

定义

An IoT Hub message property.

public class MessageProperty
继承
java.lang.Object
MessageProperty

构造函数

MessageProperty()
MessageProperty(String name, String value)

Constructor.

字段

CONNECTION_DEVICE_ID
CONNECTION_MODULE_ID
IOTHUB_CONTENT_ENCODING
IOTHUB_CONTENT_TYPE
IOTHUB_CREATION_TIME_UTC
IOTHUB_SECURITY_INTERFACE_ID
IOTHUB_SECURITY_INTERFACE_ID_VALUE
OUTPUT_NAME_PROPERTY
RESERVED_PROPERTY_NAMES

A set of reserved property names. The reserved property names are interpreted in a meaningful way by the device and the IoT Hub.

方法

getName()

Returns the property name.

getValue()

Returns the property value.

hasSameName(String name)

Equivalent to property.getName().equalsIgnoreCase(name).

isValidAppProperty(String name, String value)

Returns whether the property is a valid application property. The property is valid if it is not one of the reserved properties, only uses US-ASCII

isValidSystemProperty(String name, String value)

Returns whether the property is a valid system property. The property is valid if it is one of the reserved properties and only uses US-ASCII

适用于