Share via


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)

Syntax

'Declaration
ReadOnly Property Size As Integer
    Get
'Usage
Dim instance As Attachment
Dim value As Integer

value = instance.Size
int Size { get; }

Property Value

Type: System.Int32

Remarks

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.

See Also

Reference

Attachment Interface

Attachment Members

Microsoft.Office.Interop.Outlook Namespace