Part.isAttachment

Determines whether or not the part is an attachment based on the value of the Content-Disposition header.

class Part
bool
isAttachment
()

Return Value

Type: bool

true if the part is an attachment, otherwise false.