Click or drag to resize

MimeEntityContentId Property

Gets or sets the content identifier.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.2.0
public string ContentId { get; set; }

Property Value

Type: String
The content identifier.

The Content-Id header is used for uniquely identifying a particular entity and uses the same syntax as the Message-Id header on MIME messages.

Setting a Content-Id allows other MimePart objects within the same multipart/related container to reference this part by its unique identifier, typically by using a "cid:" URI in an HTML-formatted message body. This can be useful, for example, when the HTML-formatted message body needs to reference image attachments.

See Also