Attachment.Size property

Returns an Integer (int in C#) value indicating the size (in bytes) of the attachment. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

<DispIdAttribute()> _
ReadOnly Property Size As Integer
Dim instance As Attachment
Dim value As Integer

value = instance.Size

Property value

Type: System.Int32

This information may not always be available for attachments. For example, on an S/MIME message, the actual attachment sizes are unknown until the attachment is extracted. In cases where the attachment size cannot be determined, this property returns 0.