你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventData.ContentType Property

Definition

A MIME type describing the data contained in the EventBody, intended to allow consumers to make informed decisions for inspecting and processing the event.

public string ContentType { get; set; }
member this.ContentType : string with get, set
Public Property ContentType As String

Property Value

The MIME type of the EventBody content; when unknown, it is recommended that this value should not be set. When the body is known to be truly opaque binary data, it is recommended that "application/octet-stream" be used.

Remarks

The ContentType is managed by the application and is intended to allow coordination between event producers and consumers.

Event Hubs does not read, generate, or populate this value. It does not influence how Event Hubs stores or manages the event.

Applies to