Table of Contents

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

source Uri

The source of the event.

type string

The type of the event.

specversion string

The version of the CloudEvents specification.

Fields

ValidDataContentTypeRegex

public const string ValidDataContentTypeRegex = "^([-a-z]+)/([-a-z0-9.]+)(\\+([-a-z0-9.]+))?(;.*)?$"

Field Value

string

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; }

Property Value

string

Remarks

This value must either be null, whitespace, or satisfy the regex of ValidDataContentTypeRegex