1
我試圖訪問電子郵件中的文件附件,並將附件上傳到天藍色的表格存儲中作爲blob。訪問電子郵件附件
using Microsoft.Exchange.WebServices.Data
public void SendEmail(EmailMessage emailMessage)
{Stream stream = null;
foreach (Attachment attachment in emailMessage.Attachments)
{
if (attachment is FileAttachment)
{
FileAttachment file = (FileAttachment)attachment;
file.Load(stream);
emailAttachment.UploadEmailAttachment(attachmentFileName, stream);// This will upload to the table storage
}
}
}
當我加載附件時我收到一個錯誤,說「請求失敗的模式驗證:必需的屬性'Id'缺失。」 關於這個的任何想法