gpt4 book ai didi

c# - 如何以编程方式在 Outlook 2010 中获取联系人的图片?

转载 作者:太空狗 更新时间:2023-10-29 19:41:51 26 4
gpt4 key购买 nike

如何从 Outlook 中获取联系人的图片并将其保存到文件中?

谢谢!

最佳答案

这里的其他答案都不错,但还有一个选择:

Attachment.GetTemporaryFilePath Method (Outlook)

Attachment.SaveAsFile Method (Outlook)

检索路径。

var attachment = contact.Attachments["ContactPicture.jpg"] as Attachment;
var path = attachment.GetTemporaryFilePath();

保存文件。

var attachment = contact.Attachments["ContactPicture.jpg"] as Attachment;
var path = attachment.SaveAsFile(savePath);

关于c# - 如何以编程方式在 Outlook 2010 中获取联系人的图片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4920168/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com