<PackageReference Include="Azure.Core" Version="1.47.2" />

MessageContent

public class MessageContent
The content of a message containing a content type along with the message data.
public virtual ContentType? ContentType { get; set; }

Gets or sets the content type.

protected virtual ContentType? ContentTypeCore { get; protected set; }

For inheriting types that have a string ContentType property, this property should be overriden to forward the ContentType property into the inheriting type's string property, and vice versa. For types that have a ContentType ContentType property, it is not necessary to override this member.

public virtual BinaryData Data { get; set; }

Gets or sets the data.

public virtual bool IsReadOnly { get; }

Gets whether the message is read only or not. This can be overriden by inheriting classes to specify whether or not the message can be modified.

public MessageContent()