GetAttachmentGetAttachment

GetAttachment元素是从 Exchange 存储中获取附件的请求中的根元素。The GetAttachment element is the root element in a request to get an attachment from the Exchange store.

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

GetAttachmentTypeGetAttachmentType

属性和元素Attributes and elements

下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

AttributesAttributes

无。None.

子元素Child elements

元素Element 说明Description
AttachmentShapeAttachmentShape
标识要在对GetAttachment请求的响应中返回的其他扩展项属性。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

AttachmentShape元素不需要标识响应中返回的属性。The AttachmentShape element is not required to identify the properties returned in the response. GetAttachment 操作返回文件附件的名称、ContentType、ContentId、ContentLocation 和 Content 属性。The GetAttachment operation returns the Name, ContentType, ContentId, ContentLocation, and the Content properties for file attachments. 对于项附件,返回的属性为名称、ContentType、ContentId、ContentLocation 和所有附加项的属性。For item attachments, the returned properties are the Name, ContentType, ContentId, ContentLocation, and all the attached item's properties. 这等效于在GetItem请求中使用 AllProperties 基准形状。This is equivalent to using the AllProperties base shape in a GetItem request.

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。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

命名空间Namespace
https://schemas.microsoft.com/exchange/services/2006/messages
架构名称Schema Name
消息架构Messages schema
验证文件Validation File
Messages.xsdMessages.xsd
可以为空Can be Empty
FalseFalse

另请参阅See also

GetAttachment 操作GetAttachment operation

GetAttachmentResponseGetAttachmentResponse