HasAttachments

Topic Last Modified: 2008-08-26

The HasAttachments element represents a property that is set to true if an item has at least one visible attachment. This property is read-only.

Syntax

<HasAttachments/>

Type

Boolean

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element Description

CalendarItem

Represents an Exchange calendar item.

Contact

Represents an Exchange contact item.

DistributionList

Represents a distribution list.

Item

Represents an item in the Exchange store.

MeetingCancellation

Represents a meeting cancellation in the Exchange store.

MeetingMessage

Represents a meeting in the Exchange store.

MeetingRequest

Represents a meeting request in the Exchange store.

MeetingResponse

Represents a meeting response in the Exchange store.

Message

Represents an Exchange e-mail message.

Task

Represents a task in the Exchange store.

Text Value

A text value that represents a Boolean value is required. A value of true means that the item has at least one visible attachment. A value of false means that the item either has no attachments or has only hidden attachments.

Remarks

The HasAttachments property is calculated from the Boolean AllAttachmentsHidden MAPI property. If an item does not have an attachment, the AllAttachmentsHidden property does not exist. If all the attachments on the item are hidden, the AllAttachmentsHidden property is true. The AllAttachmentsHidden property is false if it has at least one attachment and at least one of the attachments is visible. Use the AllAttachmentsHidden MAPI property for searching, grouping, and sorting items.

The schema that describes this element is located in the EWS virtual directory of the computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed.

Element Information

Namespace

https://schemas.microsoft.com/exchange/services/2006/types

Schema Name

Types schema

Validation File

Types.xsd

Can be Empty

False