Class ExtendedCloudEvent
- Namespace
- Azure.Iot.Operations.Protocol
- Assembly
- Azure.Iot.Operations.Protocol.dll
A CloudEvent that includes the DataContentType field.
public class ExtendedCloudEvent : CloudEvent
- Inheritance
-
ExtendedCloudEvent
- Inherited Members
Constructors
ExtendedCloudEvent(Uri, string, string)
Initializes a new instance of the ExtendedCloudEvent class.
public ExtendedCloudEvent(Uri source, string type = "", string specversion = "1.0")
Parameters
sourceUriThe source of the event.
typestringThe type of the event.
specversionstringThe version of the CloudEvents specification.
Properties
DataContentType
Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format.
public string? DataContentType { get; set; }