簡體   English   中英

在Exchange傳輸代理中的e.MailItem.Message.CalendarPart中獲取null

[英]Getting null in e.MailItem.Message.CalendarPart in exchange transport agent

我正在為Exchange 2013開發自定義傳輸代理。盡管我正在發送會議請求,但e.MailItem.Message.CalendarPart卻為null

   if (e.MailItem.Message.CalendarPart != null)
        {
            LocationProcessorStrategy.AddLocationInBody(e.MailItem.Message);
        }
        else
        {
            e.MailItem.Message.Subject += " [There is no calendar part - added by agent.]";
        }

e.MailItem.Message.MapiMessageClass給我值"IPM.Schedule.Meeting.Request"CalendarPart為空。

通常,這意味着在消息傳遞階段,您嘗試截取該消息時,沒有要分析的ICal Body部分。 iCal通常根據收件人類型https://technet.microsoft.com/en-us/library/bb232174(v=exchg.150).aspx創建后分類。 因此,要么在分類發生后推動您的代理運行,要么使用TNEFReader / TNEFWriter解析TNEFStream以獲得消息。 請注意,由於要使用格式,如果要處理內部和外部“日歷邀請”,可能需要兩種解決方案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM