This topic has not yet been rated - Rate this topic

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()]
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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.