Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Size property

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)

int Size { get; }

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.

© 2015 Microsoft