2011-02-07 10 views

risposta

0

Le altre risposte qui sono buoni, ma c'è anche un'alternativa:

Attachment.GetTemporaryFilePath Method (Outlook)

Attachment.SaveAsFile Method (Outlook)

Per r etrieve il percorso.

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

Per salvare il file.

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