Message.setContentType(String contentType) 方法
定义
Set the content type of this message. Used in message routing.
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>as of device-client version 1.14.1, please use <xref uid="com.microsoft.azure.sdk.iot.device.Message.setContentTypeFinal(String)" data-throw-if-not-resolved="false" data-raw-source="setContentTypeFinal(String)"></xref></p>
</xrefdescription>
public void setContentType(String contentType)
参数
- contentType
- String
the content type of the message. May be null if you don't want to specify a content type.