2.2.4.6 t:ItemAttachmentType Complex Type

The ItemAttachmentType complex type represents an item that is attached to another item in the server store. The ItemAttachmentType complex type extends the AttachmentType complex type as specified in section 2.2.4.4. If the item attachment is MeetingMessage, MeetingRequest, MeetingResponse or MeetingCancellation, the server SHOULD return ErrorInvalidItemForOperationCreateItemAttachment response code as specified in [MS-OXWSCDATA] section 2.2.5.24. If none of the child elements of ItemAttachmentType is specified in the CreateAttachment request, the server MUST return an ErrorMissingItemForCreateItemAttachment response code as specified in [MS-OXWSCDATA] section 2.2.5.24.

 <xs:complexType name="ItemAttachmentType">
   <xs:complexContent>
     <xs:extension
       base="t:AttachmentType"
     >
       <xs:choice
         minOccurs="0"
         maxOccurs="1"
       >
         <xs:element name="Item"
           type="t:ItemType"
          />
         <xs:element name="Message"
           type="t:MessageType"
          />
         <xs:element name="CalendarItem"
           type="t:CalendarItemType"
          />
         <xs:element name="Contact"
           type="t:ContactItemType"
          />
         <xs:element name="MeetingMessage"
           type="t:MeetingMessageType"
          />
         <xs:element name="MeetingRequest"
           type="t:MeetingRequestMessageType"
          />
         <xs:element name="MeetingResponse"
           type="t:MeetingResponseMessageType"
          />
         <xs:element name="MeetingCancellation"
           type="t:MeetingCancellationMessageType"
          />
         <xs:element name="Task"
           type="t:TaskType"
          />
         <xs:element name="PostItem"
           type="t:PostItemType"
          />
         <xs:element name="RoleMember" 
           type="t:RoleMemberItemType"
          />
         <xs:element name="Network" 
           type="t:NetworkItemType"
          />
         <xs:element name="Person" 
           type="t:AbchPersonItemType"
          />
         <xs:element name="Booking"
           type="t:BookingItemType"
          />
       </xs:choice>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
  

The following table lists the child elements of the ItemAttachmentType complex type.

Element

Type

Description

Item

t:ItemType ([MS-OXWSCORE] section 2.2.4.24)

Represents a generic item in the server store. All items of type t:ItemType SHOULD<3> be returned as Message of a t:MessageType type.

Message

t:MessageType ([MS-OXWSMSG] section 2.2.4.3)

Represents a server e-mail message.

CalendarItem

t:CalendarItemType ([MS-OXWSMTGS] section 2.2.4.6)

Represents a calendar item.

Contact

t:ContactItemType ([MS-OXWSCONT] section 2.2.4.3)

Represents a contact item.

MeetingMessage

t:MeetingMessageType ([MS-OXWSMTGS] section 2.2.4.15)

Represents a meeting message in the server store.

MeetingRequest

t:MeetingRequestMessageType ([MS-OXWSMTGS] section 2.2.4.17)

Represents a meeting request in the server store.

MeetingResponse

t:MeetingResponseMessageType ([MS-OXWSMTGS] section 2.2.4.18)

Represents a meeting response in the server store.

MeetingCancellation

t:MeetingCancellationMessageType ([MS-OXWSMTGS] section 2.2.4.14)

Represents a meeting cancellation in the server store.

Task

t:TaskType ([MS-OXWSTASK] section 2.2.4.6)

Represents a task in the server store.

PostItem

t:PostItemType ([MS-OXWSPOST] section 2.2.4.1)

Represents a post item in the server store.

RoleMember

t:RoleMemberItemType ([MS-OXWSCORE] section 2.2.4.43)

For internal use only.<4>

Network

t:NetworkItemType ([MS-OXWSCORE] section 2.2.4.30)

For internal use only.<5>

Person

t:AbchPersonItemType ([MS-OXWSCONT] section 2.2.4.1)

Represents a person in the server store.<6>

Booking

t:BookingItemType ([MS-OXWSCDATA] section 2.2.4.20)

For internal use only.<7>