2.2.4.4 t:AttachmentType Complex Type

The AttachmentType complex type represents an attachment.

 <xs:complexType name="AttachmentType">
   <xs:sequence>
     <xs:element name="AttachmentId"
       type="t:AttachmentIdType"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="Name"
       type="xs:string"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="ContentType"
       type="xs:string"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="ContentId"
       type="xs:string"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="ContentLocation"
       type="xs:string"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="Size"
       type="xs:int"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="LastModifiedTime"
       type="xs:dateTime"
       minOccurs="0"
       maxOccurs="1"
      />
     <xs:element name="IsInline"
       type="xs:boolean"
       minOccurs="0"
       maxOccurs="1"
      />
   </xs:sequence>
 </xs:complexType>
  

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

Element

Type

Description

AttachmentId

t:AttachmentIdType (section 2.2.4.2)

Specifies the attachment identifier.

Name

xs:string([XMLSCHEMA2])

Specifies the descriptive name of the attachment.

ContentType

xs:string

Specifies the MIME type of the attachment content. For example: "text/enriched", "text/html", "text/plain", "text/rfc822-headers", "text/richtext", or "text/sgml".

ContentId

xs:string

Specifies the unique object identifier for an attachment.

ContentLocation

xs:string

Specifies the URI that corresponds to the location of the content of the attachment. The ContentLocation element can be used to associate an attachment with a URL that defines its location on the Web.

Size

xs:int ([XMLSCHEMA2])

Specifies an estimate of the size, in bytes, of the item's complete body.

LastModifiedTime

xs:dateTime ([XMLSCHEMA2])

Specifies the day and time that this item was last changed.

IsInline<1>

xs:boolean ([XMLSCHEMA2])

A Boolean value that indicates whether the attachment is an inline attachment. The IsInline element is set to indicate that the attachment appears inline within an item.

The AttachmentType complex type is extended by the ItemAttachmentType complex type, as specified in section 2.2.4.6, and the FileAttachmentType complex type, as specified in section 2.2.4.5.