Attachment.Size Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an Integer (int in C#) value indicating the size (in bytes) of the attachment. Read-only.
public:
property int Size { int get(); };
public int Size { get; }
Public ReadOnly Property Size As Integer
Property Value
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.