Udostępnij za pośrednictwem


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