ExchangeService.GetAttachments 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetAttachments(Attachment[], Nullable<BodyType>, IEnumerable<PropertyDefinitionBase>) |
从服务器获取附件属性。 |
GetAttachments(String[], Nullable<BodyType>, IEnumerable<PropertyDefinitionBase>) |
从服务器获取附件属性。 |
GetAttachments(Attachment[], Nullable<BodyType>, IEnumerable<PropertyDefinitionBase>)
从服务器获取附件属性。
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::GetAttachmentResponse ^> ^ GetAttachments(cli::array <Microsoft::Exchange::WebServices::Data::Attachment ^> ^ attachments, Nullable<Microsoft::Exchange::WebServices::Data::BodyType> bodyType, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::PropertyDefinitionBase ^> ^ additionalProperties);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.GetAttachmentResponse> GetAttachments (Microsoft.Exchange.WebServices.Data.Attachment[] attachments, Nullable<Microsoft.Exchange.WebServices.Data.BodyType> bodyType, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.PropertyDefinitionBase> additionalProperties);
Public Function GetAttachments (attachments As Attachment(), bodyType As Nullable(Of BodyType), additionalProperties As IEnumerable(Of PropertyDefinitionBase)) As ServiceResponseCollection(Of GetAttachmentResponse)
参数
- attachments
- Attachment[]
对象的数组 Attachment 。
- additionalProperties
- IEnumerable<PropertyDefinitionBase>
指定要在响应中返回的附件上的其他属性。
返回
每个附件的响应集合。
适用于
GetAttachments(String[], Nullable<BodyType>, IEnumerable<PropertyDefinitionBase>)
从服务器获取附件属性。
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::GetAttachmentResponse ^> ^ GetAttachments(cli::array <System::String ^> ^ attachmentIds, Nullable<Microsoft::Exchange::WebServices::Data::BodyType> bodyType, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::PropertyDefinitionBase ^> ^ additionalProperties);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.GetAttachmentResponse> GetAttachments (string[] attachmentIds, Nullable<Microsoft.Exchange.WebServices.Data.BodyType> bodyType, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.PropertyDefinitionBase> additionalProperties);
Public Function GetAttachments (attachmentIds As String(), bodyType As Nullable(Of BodyType), additionalProperties As IEnumerable(Of PropertyDefinitionBase)) As ServiceResponseCollection(Of GetAttachmentResponse)
参数
- attachmentIds
- String[]
标识要从服务器获取的附件的附件 ID 数组。
- additionalProperties
- IEnumerable<PropertyDefinitionBase>
指定要在响应中返回的附件上的其他属性。
返回
每个附件的响应集合。
注解
此方法根据 参数中指定的 attachmentIds
附件 ID 检索一个或多个附件。 当只有附件 ID 可用(例如邮件应用将附件 ID 发送到远程服务时)时,就可以访问附件