編輯

共用方式為


GetAttachment

The GetAttachment element is the root element in a request to get an attachment from the Exchange store.

<GetAttachment>
   <AttachmentShape/>
   <AttachmentIds/>
</GetAttachment>

GetAttachmentType

Attributes and elements

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

Attributes

None.

Child elements

Element Description
AttachmentShape
Identifies additional extended item properties to return in a response to a GetAttachment request. This element is optional.
AttachmentIds
Contains an array of attachment identifiers.

Parent elements

None.

Remarks

The AttachmentShape element is not required to identify the properties returned in the response. The GetAttachment operation returns the Name, ContentType, ContentId, ContentLocation, and the Content properties for file attachments. For item attachments, the returned properties are the Name, ContentType, ContentId, ContentLocation, and all the attached item's properties. This is equivalent to using the AllProperties base shape in a GetItem request.

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

Element information

Name Value
Namespace
http://schemas.microsoft.com/exchange/services/2006/messages
Schema Name
Messages schema
Validation File
Messages.xsd
Can be Empty
False

See also

GetAttachment operation

GetAttachmentResponse