MapiAttachment.ContentLength

MapiAttachment.ContentLength property

Gets the length of the attachment content in bytes.

public long ContentLength { get; }

Remarks

For attachments added from a stream this does not materialise the content. For embedded message attachments (ObjectData.IsOutlookMessage = true), this property returns the size of the embedded message content.

See Also