MimeEntityContentLocation Property

Get or set the content location.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Uri? ContentLocation { get; set; }

Property Value

Uri
The content location or .

Implements

IMimeEntityContentLocation

Remarks

The Content-Location header specifies the URI for a MIME entity and can be either absolute or relative.

Setting a Content-Location URI allows other MimePart objects within the same multipart/related container to reference this part by URI. This can be useful, for example, when constructing an HTML message body that needs to reference image attachments.

For more information, see rfc2110.

Exceptions

ObjectDisposedException The MimeEntity has been disposed.

See Also